| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
common if/then modifications I make to x-cart... | ||||
|
|
Thread Tools | Search this Thread |
#162
|
|||||||
|
|||||||
Re: common if/then modifications I make to x-cart...
Anyway to have an if statement to work just on a category page that displays the products? So far I can only see it working if it's 'xxx' but I need it to work on just the categorys with products listed on it.
__________________
Xcart 4.5.2 |
|||||||
#163
|
|||||||
|
|||||||
Re: common if/then modifications I make to x-cart...
Quote:
How about: {if $main eq "catalog" and $current_category.category ne ""} This makes certain that there is a category that is not empty. This is the inverse of the homepage (where category will be empty). Yes?
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#164
|
|||||||
|
|||||||
Re: common if/then modifications I make to x-cart...
Quote:
Didn't appear to work for my site, driving me insane lol.
__________________
4.5.2 |
|||||||
#165
|
|||||||||
|
|||||||||
Re: common if/then modifications I make to x-cart...
That if/else statement should work for all categories on all x-cart versions without fail. Usually I'll do the ID though just to be extra safe:
Code:
|
|||||||||
#166
|
|||||||
|
|||||||
Re: common if/then modifications I make to x-cart...
Quote:
I have this below: {if $main eq "catalog" AND $current_category.categoryid ne ""} {include file="modules/Refine_Filters/customer_filter.tpl"} {/if} Trying to make the filter only work on the last categories the page with products showing in a list. Having it on every category isn't what I need. (Hope I'm explaining my self right) Cheers guys
__________________
4.5.2 |
|||||||
#167
|
|||||||||
|
|||||||||
Re: common if/then modifications I make to x-cart...
On the last categories the page?
|
|||||||||
#168
|
|||||||
|
|||||||
Re: common if/then modifications I make to x-cart...
Basically pages showing products, the filter appears on every category which looks poor, if it just appears on categories with products showing it would make my life easier lol
__________________
4.5.2 |
|||||||
#169
|
|||||||
|
|||||||
Re: common if/then modifications I make to x-cart...
Revolate, maybe try...
Quote:
__________________
xcartmods.co.uk |
|||||||
#170
|
|||||||||
|
|||||||||
Re: common if/then modifications I make to x-cart...
Quote:
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|