| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
|
|
||||||||||
| X-Cart Home |
Remove buy now for one product | |||
![]() |
|
||
|
|
Thread Tools | Search this Thread |
|
#1
|
|||||||
|
|||||||
|
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
__________________
X Cart Version 4.1.11 |
|||||||
|
#2
|
|||||||||
|
|||||||||
|
Quote:
Yes, just in the beginning you need to decide how you will specify this product in admin area. |
|||||||||
|
#3
|
|||||||
|
|||||||
|
Can you explain how to do this please.
__________________
X Cart Version 4.1.11 |
|||||||
|
#4
|
|||||||||
|
|||||||||
|
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. |
|||||||||
|
#5
|
|||||||
|
|||||||
|
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
__________________
X Cart Version 4.1.11 |
|||||||
|
#6
|
|||||||
|
|||||||
|
Can anyone help please
__________________
X Cart Version 4.1.11 |
|||||||
|
|
|||
|
X-Cart forums © 2001-2020
|
|||