Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi all,
I'm Having the same problem as http://drupal.org/node/1844228 , so on I found useful to add theme hook suggestion with node type to let themers change product depending if it is for example a t-shirt or a book.
So you can override the default node--product--type.tpl.php with node--book--product--type.tpl.php or/and node--tshirt--product--type.tpl.php.
Comment | File | Size | Author |
---|---|---|---|
tplbynodetype.patch | 1.84 KB | aleix |
Comments
Comment #1
jsacksick CreditAttribution: jsacksick commentedI commited a different patch in dev that adds a lot of template suggestions, you're now able to override by node type and view mode, here's the list of the possible templates.
Comment #2
jsacksick CreditAttribution: jsacksick commentedHere's the commit.
https://code.drupalcommerce.org/#/c/621/