Closed (fixed)
Project:
Commerce Kickstart
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
3 Dec 2012 at 16:16 UTC
Updated:
23 Mar 2013 at 15:00 UTC
Hello,
Theming Content Type (Product Display -> Yes) don't work. (node--contenttypename.tpl.php)
Bye
Comments
Comment #1
dudenhofer commentedTry using node--product--type.tpl.php - this can be copied from the profiles/commerce_kickstart/modules/commerce_kickstart/commerce_kickstart_product_ui/theme folder and copied to your theme. Then you could update it from there.
Comment #2
vasikei can confirm #1 solution.
i copied the node--product--type.tpl.php in the Commerce kickstart theme templates folder.
and i could change the product display page
i think some documentation it's good to have.
Comment #3
gbrands commentedI have several product types that I needed to theme separately....here's what I did.
I created a new template suggestion in my custom theme:
Now I can use the template naming convention: node--product--type--TYPENAME.tpl.php
Hope this helps someone. If this should be placed into documentation somewhere please let me know and I can move it. If it already is....it's really hard to find.
Comment #4
jsacksick commentedYour hook_preprocess_node shouldn't be necessary as we already have one in our module.
See http://drupal.org/node/1911600#comment-7042468
Comment #5
gbrands commentedThanks!