| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
common if/then modifications I make to x-cart... | ||||
|
|
Thread Tools | Search this Thread |
#171
|
|||||||||
|
|||||||||
Re: common if/then modifications I make to x-cart...
Code:
|
|||||||||
|
#172
|
|||||||
|
|||||||
Re: common if/then modifications I make to x-cart...
Is there a if statement for:
if product is in category ... than ...
__________________
X cart Gold 4.6.2 |
|||||||
#173
|
|||||||||
|
|||||||||
Re: common if/then modifications I make to x-cart...
{if $product.categoryid eq 'XX'}...{/if}
Keep in mind though this is the main category the product is so if you have it assigned to more than one category it will not work for the additional categories. If you need it to work everywhere product shows it has to be custom coded.
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#174
|
|||||||
|
|||||||
Re: common if/then modifications I make to x-cart...
Thank you for the fast answer. But it doesn't work.
Do i also need to edit some php file to make that code work on the category page of my shop?
__________________
X cart Gold 4.6.2 |
|||||||
#175
|
|||||||||
|
|||||||||
Re: common if/then modifications I make to x-cart...
Look in the debug console if categoryid even exists for the products array, you can use the webmaster mode to show the debug console
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#176
|
|||||||
|
|||||||
Re: common if/then modifications I make to x-cart...
I am interested in the if/then modification #10. I need to do something similar. Is it possible to have a payment method not show up if a certain product option is selected? More specifically I have a product option called 'auto-ship' that if if is selected as 'No' I want the customer to have PayPal checkout as an option, however if they choose 'Yes' for this product option I do not want the PayPal option to be available during checkout. Any information/ advise would be very helpful and appreciated. Thank you.
__________________
-- Thank you, Michelle Natures Elements, Inc. http:www.natureselements.net X-cart Version: 4.2 |
|||||||
#177
|
|||||||||
|
|||||||||
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. |
|||||||||
#178
|
|||||||
|
|||||||
Re: common if/then modifications I make to x-cart...
Quote:
How to achieve this? If any customer directly register in the cart by clicking register.php without adding product in the cart will redirect to home page and if any customer added product in the cart and then click register.php then how to redirected that customer to address book page?
__________________
X-cart Platinum 4.6.1 Reboot template |
|||||||
#179
|
|||||||
|
|||||||
Re: common if/then modifications I make to x-cart...
I want to display extra field #6 (name = publisher) in admin email invoice. I tried adding following code in skin\common_files\mail\html\order_data.tpl
PHP Code:
Does any one know how to achieve this ?
__________________
X-Cart: 4.7.7 LIVE Skin:Ultra by xcartmods.co.uk X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9) --------------- Server: Linux php: 5.3 mysql: 5.0.89 ---------------- |
|||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|