| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Custom Category and Subcategory Menu Blocks | ||||
|
|
Thread Tools | Search this Thread |
#11
|
|||||||||
|
|||||||||
Well we were close. Here is what works:
Code:
I am wanting to take it one step further and include certain pages also. For example: Code:
Which works, but I want to add mutiple pages. Like pageid 1,3,4,6,7,8 for the first section and 9, 10, 13, 14, etc for second section and so on and so forth. I'm not sure how to add the multiple pages without having to do them each separate. Like this - Code:
This would get fairly messy. I'm looking for something more like this - Code:
Ideas?
__________________
X-Cart Gold 4.4.1 X-Cart Gold 4.2.3 |
|||||||||
#12
|
|||||||
|
|||||||
Re: Custom Category and Subcategory Menu Blocks
Can this code be modified to work based on the root category id?
Just curious
__________________
mudebate X-cart 4.11 - One page checkout, category meta tags, manufacturer meta tags, a few others X-cart 4.2, tabbed products menu |
|||||||
#13
|
|||||||
|
|||||||
Re: Custom Category and Subcategory Menu Blocks
Also, let's say I want to display .tpl file only on the product page for a specific product. Could something like this be written that would do this?
Ie. {if product id eq 1} {include customer/abd.tpl} {/if} Thanks for the help!
__________________
mudebate X-cart 4.11 - One page checkout, category meta tags, manufacturer meta tags, a few others X-cart 4.2, tabbed products menu |
|||||||
#14
|
|||||||
|
|||||||
Re: Custom Category and Subcategory Menu Blocks
OK, figured it out:
{if $product.productid eq '47'} {include file="yourfilename.tpl"} {/if}
__________________
mudebate X-cart 4.11 - One page checkout, category meta tags, manufacturer meta tags, a few others X-cart 4.2, tabbed products menu |
|||||||
|
|||
X-Cart forums © 2001-2020
|