Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Remove buy now for one product

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-28-2008, 11:34 AM
 
ibit-matt ibit-matt is offline
 

Advanced Member
  
Join Date: Sep 2008
Posts: 60
 

Default Remove buy now for one product

Is there away to remove the buy now button and Price and Quantity for just one product in a catagory.

I need to remove it for the CCTV control Centre product in the screen attached


Thanks in advance
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	208
Size:	74.5 KB
ID:	1202  
__________________
X Cart Version 4.1.11
Reply With Quote
  #2  
Old 10-29-2008, 12:28 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: Remove buy now for one product

Quote:
Originally Posted by ibit-matt
Is there away to remove the buy now button and Price and Quantity for just one product in a catagory.

I need to remove it for the CCTV control Centre product in the screen attached


Thanks in advance

Yes, just in the beginning you need to decide how you will specify this product in admin area.
Reply With Quote
  #3  
Old 10-29-2008, 04:18 AM
 
ibit-matt ibit-matt is offline
 

Advanced Member
  
Join Date: Sep 2008
Posts: 60
 

Default Re: Remove buy now for one product

Can you explain how to do this please.
__________________
X Cart Version 4.1.11
Reply With Quote
  #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
  #5  
Old 10-29-2008, 09:15 AM
 
ibit-matt ibit-matt is offline
 

Advanced Member
  
Join Date: Sep 2008
Posts: 60
 

Default Re: Remove buy now for one product

Hi there I did what you said but it removed all the buttons. I just wanted to remove the buy now button the quantity and the price.

Also it left the price in as well. I went the product in the admin panel and took the price out but it still showed on the product??


See screen attached
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	208
Size:	77.2 KB
ID:	1205  
__________________
X Cart Version 4.1.11
Reply With Quote
  #6  
Old 10-30-2008, 07:34 AM
 
ibit-matt ibit-matt is offline
 

Advanced Member
  
Join Date: Sep 2008
Posts: 60
 

Default Re: Remove buy now for one product

Can anyone help please
__________________
X Cart Version 4.1.11
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:44 AM.

   

 
X-Cart forums © 2001-2020