View Single Post
Old 07-09-2005, 10:39 AM
markdstephens markdstephens is offline

Advanced Member
Join Date: Nov 2003
Posts: 39


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.

{if substr($product.productcode, 0, 2) == "SC"}[*]Recent Press {/if}

We have default tab set to 1 in tabs.js

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


Reply With Quote