this works really well and your help was spot on apart from one thing that I stupidly didn't think of......sometimes I don't want the last tab to be a different colour, only pages with the 'Colours / Buy' button.
I've amended the if statement to include product id so that only a product that is last and has product id xxxxx gets the different colour button. do you know how I can add multiple product ids to the if statement? I can't get it to work? here's what I have:
Code:
<li{if (($smarty.foreach.product_tabs.last)&&($product.productid eq "17516"))} class="last_tab"{/if}><a href="#{$prefix}csi-{$tab.tabid}">{$tab.title|wm_remove|escape}</a></li>
I want to have it so that it has more than one product id so something like:
Code:
<li{if (($smarty.foreach.product_tabs.last)&&($product.productid eq "17516,17515,17519"))} class="last_tab"{/if}><a href="#{$prefix}csi-{$tab.tabid}">{$tab.title|wm_remove|escape}</a></li>
any ideas? We only have a finite amount of products so I'm happy with quite a mechanical rule like this (i.e. specifying the ids individually) unless you can see another way?
again many thanks for your help it's really appreciated