Great mod thanks to all.
Have added checks to see if product is part of a specific category by examining the SKU code. We use category prefixes to easily identify a product.
Eg: If SKU begins with a SC eg: SC045, SC183 etc. then we know it is shoes and hence display the tab for the recent press.
Code:
{if substr($product.productcode, 0, 2) == "SC"}[*]
Recent Press
{/if}
We have default tab set to 1 in tabs.js
Code:
var initialtab=[1, "sc1"]
which autmatically opens the Detail Images tab if detailed images exist.
Question is I want to be able to set the default tab to say sc6-recent press and have it open automatically if there are no detailed images.
Basically do some sort of logic test in tabs.js. Anyone any ideas
Cheers
4.0.13