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.

CommentFileSizeAuthor
tplbynodetype.patch1.84 KBaleix
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jsacksick’s picture

Status: Active » Fixed

I 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.

  • node--product--type (For the generic one)
  • node--(node-type) : e.g node--bags-cases.tpl.php
  • node--product--type--(view-mode).tpl.php
  • node--product--type--(view--mode).tpl.php (For backward compatibility)
  • node--(node-type)--(view-mode).tpl.php : eg node--bags-cases--product-list.tpl.php
jsacksick’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.