X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Remove buy now for one product (https://forum.x-cart.com/showthread.php?t=43299)

ibit-matt 10-28-2008 11:34 AM

Remove buy now for one product
 
1 Attachment(s)
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

Yurij 10-29-2008 12:28 AM

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.

ibit-matt 10-29-2008 04:18 AM

Re: Remove buy now for one product
 
Can you explain how to do this please. :-)

pauldodman 10-29-2008 04:24 AM

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.

ibit-matt 10-29-2008 09:15 AM

Re: Remove buy now for one product
 
1 Attachment(s)
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

ibit-matt 10-30-2008 07:34 AM

Re: Remove buy now for one product
 
Can anyone help please :-)


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

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.