Re: common if/then modifications I make to x-cart...
Code:
{if $main eq "catalog" AND $current_category.categoryid ne "" AND $products ne ""} |
Re: common if/then modifications I make to x-cart...
Is there a if statement for:
if product is in category ... than ... |
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. |
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? |
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
|
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.
|
Re: common if/then modifications I make to x-cart...
Quote:
|
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? |
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 ? |
All times are GMT -8. The time now is 05:15 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.