View Single Post
  #4  
Old 10-29-2008, 04:24 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

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

Default Re: Remove buy now for one product

Firstly, you need to find the id of the product - the productid - you can find this by seeing what the link is in a browser.

Then open up skin1/customer/main/products.tpl

find:
{include file="customer/main/buy_now.tpl" product=$products[product]}

And then you need to put an if statement around this code.

{if $products[product].productid ne "xxx"}
{include file="customer/main/buy_now.tpl" product=$products[product]}
{/if}

obviously swap xxx for the product id no.

this will then only show the buy now button if the product is not that one.
__________________
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