View Single Post
  #4  
Old 12-13-2013, 08:10 AM
 
designguru designguru is offline
 

X-Adept
  
Join Date: Dec 2010
Posts: 418
 

Default Re: Free items - remove buy button?

Quote:
Originally Posted by totaltec
Let's assume you are using the ideal_comfort skin.
In /ideal_comfort/customer/buttons/buy_now.tpl

Surround the button code with an if statement like this:
Code:
{if $product.price ne 0} {include file="customer/buttons/button.tpl" button_title=$lng.lbl_buy_now_img|substitute:"AltImagesDir":$AltImagesDir tips_title=$lng.lbl_buy_now notitle=true additional_button_class=$additional_button_class|cat:' add-to-cart-button'} {/if}

Thank you!!

Didn't work in the skin/common_folder/ folder but will try in the templates folder.

How to get rid of the border (box) where the price appears when there's no price set?
__________________
X-Cart Pro 4.6.2 with many modules
X-CART Pro 4.4.1
Reply With Quote