Jump to content

Removing the add to cart option for specific products


Mandala

Recommended Posts

Hi

Sorry if this is a stupid question - I'm new to PrestaShop. I was wondering if there is a way to remove an 'add to cart' option for specific products only - and in it's place having a contact button? I do wish to list the products on the site, but my payment processor doesn't support this one specific product.

Thanks in advance.

Link to comment
Share on other sites

See my post here. You could also hardcode a product ID instead of making it products greater than $0 by changing:

{if $product->getPrice(true, $smarty.const.NULL, 2, $smarty.const.NULL, true) == 0}



to:

{if $product->id == 2}



Change 2 to the ID of the product you want to have as "Contact us" instead of "Add to cart".

Link to comment
Share on other sites

Thank you.

and in the first part of the code above:

{if $product->getPrice(true, $smarty.const.NULL, 2, $smarty.const.NULL, true) == 0}

is the 2 there also the product ID I will have to edit? I assume it is. Sorry, I'm quite the novice when it comes to all of this..

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...