| ||||||||||
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 |
#111
|
|||||||
|
|||||||
Re: common if/then modifications I make to x-cart...
Hello all,
This is a great thread, lots of good info. However, I can't seem to get #9 to work, we would like one of our static pages (support.html) to only be accessible to those with a membership (after we manually confirm their membership in the User Profiles section). We have two types of memberships, Returning Customers and Distributors. We would like both types of memberships to have access to the Support page once they are logged in. I believe a lot of the solutions posted here are the pre 4.2 versions and thats why the solutions in this thread are proving unsuccessful. Were running 4.2.2. This should be a simple if statement however we're useless with x-cart We would greatly appreciate your help! Cheers,
__________________
x-cart 4.2.2 ***************** x-fancycat-4.2.2 x-aom-4.2.2 |
|||||||
#112
|
|||||||||
|
|||||||||
Re: common if/then modifications I make to x-cart...
Hi there, great thread. I'm have a problem with the flyout menus in v4.3.1. My customer wants the following thing and I believe it can happen with it/then modification. She wants when a client is on a particular category of the menu, all other categories and subcategories to dissapper. For example, the ones in the green are visible, the ones in red are not visible:
Category 1 Subcategory 1 Subcategory 2 Category 2 Subcategory 1 Subcategory 2 Category 3 Category 4 Any ideas, I've been trying to do this for 4 days already and I'm puzzled... Thanks in advance!
__________________
Version 4.2.3 X-Cart Gold Version 4.3.1 X-Cart Gold |
|||||||||
#113
|
|||||||
|
|||||||
Re: common if/then modifications I make to x-cart...
I'm applying IF statement condition on language variable I have added to two language on my website."
I had set store_language as variable and it's value in english website as EN and in arabic as AR. I have now the below condition should be applied true when the website is in English but it never comes true, it switches always to ELSE condition. Please this is me only ask to be solved, help in this HTML Code:
__________________
X-Cart 4.4 |
|||||||
#114
|
|||||||
|
|||||||
Re: common if/then modifications I make to x-cart...
Fioppy,
This is the code I use. Hope it helps. {if $shop_language eq"EN"} Insert Condition #1 here {else} Insert Condition #2 here {/if}
__________________
X-Cart version 4.1.8 (given up, for now, on 4.1.9 upgrade) |
|||||||
#115
|
|||||||
|
|||||||
Re: common if/then modifications I make to x-cart...
I need to custiomized the product options to serve a special task in my website.
I want to create a Drop down list which is normal and available now on website for ex: Size1,2,3,4,5, Customize) I will create different Text options too like: Hips, Arm, Waist, Bust as test field to options products. If customer selected "customize" from drop down list dynamicaly the Test fields above should be displayed below it. or then they should be hidden all time unless customer picked Customize from Size drop down list. Please advice what change required to reach this option Regards
__________________
X-Cart 4.4 |
|||||||
#116
|
|||||||
|
|||||||
Re: common if/then modifications I make to x-cart...
Guys i wnat to display a image only in the login page. any idea how to write a if condition for this?
__________________
x-cart-4.4.1-pro |
|||||||
#117
|
|||||||
|
|||||||
Re: common if/then modifications I make to x-cart...
Hi Instinctual,
Is there an if statement to have something show on every category BUT one specific one? I tried using {if cat eq "254"} nothing goes here - empty {else} the regular code would go here {/if} but it didn't seem to affect products_t.tpl Basically, I have only one category where I want to omit the "buy now" button - the rest it's good to go on. Thanks!
__________________
4.4.5 - with Customized Smart Template |
|||||||
#118
|
|||||||||
|
|||||||||
Re: common if/then modifications I make to x-cart...
You can use $current_category.categoryid
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#119
|
|||||||
|
|||||||
Re: common if/then modifications I make to x-cart...
Quote:
Thanks! I'm totally clueless here with the programming statements
__________________
4.4.5 - with Customized Smart Template |
|||||||
#120
|
|||||||||
|
|||||||||
Re: common if/then modifications I make to x-cart...
Buy Now button is only on products list pages, not on product pages. You need to place the if statement in the correct template - products_t.tpl or products_list.tpl - depending on how your categories pages are listed
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
|||
X-Cart forums © 2001-2020
|