![]() |
|
|||||||
|
|
Thread Tools | Display Modes |
|
#2
IP: 153.99.38.207
|
|||
|
|||
|
Displaying a different product template is very easy to do. But you need a "trigger" in order to know when to switch the template. In your case the trigger is the categoryid.
Thankfully the main category id for the current product page is stored in the $product array. So you can switch templates based on some code like this: Code:
{if $product.categoryid eq '243'}
Do this
{else}
Do that
{/if}
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to Show Category and Tag Descriptions In WordPress Theme | topvip | WordPress | 0 | 2010-11-03 09:46 PM |
| How to Install an Zen Cart Template | topvip | ZenCart | 0 | 2009-08-23 05:35 PM |
| Becoming an editor at the Open Directory | yahoo | 闲话灌水 | 0 | 2009-05-24 01:08 PM |
| x-cart Template Editing Guide for 4.1.x | topvip | X-Cart | 0 | 2009-04-15 11:42 PM |
| Template Editing Guide for 4.1.x | topvip | X-Cart | 0 | 2009-03-10 08:12 AM |