| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Hide add-to-cart button if price = 0.00 | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Hide add-to-cart button if price = 0.00
Can anyone help me. I want to hide the add-to-cart button on the product pages if the price is shown as 0.00. Site is RGM (see signature)
Version concerned is 4.4.3. Many thanks. Denis.
__________________
Version 4.4.3 http://oakfurniture1.co.uk http://www.rgmimports.co.uk http://www.mercersfurniture.co.uk Last edited by denisRGM : 11-01-2011 at 07:31 AM. Reason: Site added |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Hide add-to-cart button if price = 0.00
Start by finding the template product_details.tpl in customer/main in your skin folder.
Then look for the code that displays the button, e.g. {include file="customer/buttons/add_to_cart.tpl" type="input" additional_button_class="main-button"} Then surround that code with an if statement to determine if the price is 0. {if $product.taxed_price ne 0} {/if} The button will then only show if the product has a price above 0.
__________________
Paul Dodman e-business & m-commerce consultant w: www.luminointernet.com e: xcart@luminointernet.com Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart. |
|||||||||
#3
|
|||||||
|
|||||||
Re: Hide add-to-cart button if price = 0.00
Many thanks Paul. I thought that was what I had typed in the first place but copy and paste of your text worked fine while mine didn't. Thank you so much.
Denis.
__________________
Version 4.4.3 http://oakfurniture1.co.uk http://www.rgmimports.co.uk http://www.mercersfurniture.co.uk |
|||||||
#4
|
|||||||
|
|||||||
Re: Hide add-to-cart button if price = 0.00
Is it possible to hide the add-to-cart button when the price=0 by using the custom CSS? I'd rather not dig into the php code.
__________________
Business 5.3.1.5 |
|||||||
#5
|
|||||||||
|
|||||||||
Re: Hide add-to-cart button if price = 0.00
Are you using X-Cart 5?
This is a version 4 thread.
__________________
Paul Dodman e-business & m-commerce consultant w: www.luminointernet.com e: xcart@luminointernet.com Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart. |
|||||||||
#6
|
|||||||
|
|||||||
Re: Hide add-to-cart button if price = 0.00
oops, sorry. will post on the proper forum
__________________
Business 5.3.1.5 |
|||||||
|
|||
X-Cart forums © 2001-2020
|