View Single Post
  #1  
Old 07-14-2011, 09:15 AM
 
mme mme is offline
 

Newbie
  
Join Date: Jun 2011
Posts: 2
 

Default Add links on product page depending on category

Hi all,
depending on what category a product is in I would like to add a link to a static page in the product description.

For example on a product page of a tent, which is in the category 'tents', I would like to add a link to a static page called 'learn more about how to choose the right tent'.
For a backpack in the category 'backpacks' I would like a link to 'sizing backpacks' to appear.

I can add these manually, as you can see on this page (the part with the questionmark): http://store.mountainmagic.com/Black-Diamond-Vista-SKU1511.html

But I don't want to add this for every product in the store manually.

I guess I would have to create various language files with the different versions for different categories and insert an if statement on the product.tpl? Something like this: {if $cat eq "8"} show language file x{/if} {if $cat eq "9"} show language file y{/if}

Any help would be appreciated.
__________________
x-cart 4.3.1
Reply With Quote