View Single Post
  #2  
Old 01-21-2009, 09:40 AM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: 4.2 need different product template for just 1 category

If 4.2 is the same as the 4.1 branch, in product.tpl, the variable $cat contains the categoryid of the current product, so you could do if-than statements based on the $cat variable.

You can test by temporarily putting this code in product.tpl and see if it gives you the data:

Code:
<br />category: {$cat}<br />

If it works, you can use if/than/else statements based on the $cat variable to make the page.

If you need differences for other category pages, you can try the solution posted here.
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote