View Single Post
  #1  
Old 10-11-2015, 05:19 AM
 
mcpilot mcpilot is offline
 

Advanced Member
  
Join Date: Dec 2004
Location: Cincinnati
Posts: 68
 

Default If/else on specific product page

This should be a simple task but it doesn't appear to be based on the work I have done thus far;

When displaying a category, I want to be able to designate whether the product comes in rolls or cartons. On the products_list.tpl, I can easily do this with {if $cat eq 183} ROLLS {else} CARTONS {/if}

However, once the user clicks on the specific PRODUCT, I seem to lose the ability to control this. The "If Category" no longer works, because X-Cart is not carrying over the category in the URL, it's just the product now.

How can I then, continue to get the rolls v. cartons to display on product_details.tpl using the same "If Cat" code? I can't break it down per product, there are too many.

Thanks you in advance,

Pat
__________________
thebookfarminc.com
Version 4.7.0
Reply With Quote