Re: common if/then modifications I make to x-cart...
{$lng.your_variable_name}
It will appear blank if empty. |
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.
:D |
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? |
Re: common if/then modifications I make to x-cart...
Quote:
Didn't appear to work for my site, driving me insane lol. |
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:
{if $main eq "catalog" AND $current_category.categoryid ne ""}Show Text{/if} |
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 |
Re: common if/then modifications I make to x-cart...
On the last categories the page?
|
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
|
Re: common if/then modifications I make to x-cart...
Revolate, maybe try...
Quote:
|
Re: common if/then modifications I make to x-cart...
Quote:
|
All times are GMT -8. The time now is 05:16 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.