View Single Post
  #2  
Old 11-02-2011, 01:03 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default 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.
Reply With Quote