Jump to content

Disable Cart Option Prestashop 1.3.x


Recommended Posts

I would use one of the existing product fields as an indicator (IE the location or supplier reference), set that to 1, and then modify product.tpl and product-list.tpl to hide the add to cart button if $product->location == 1

Link to comment
Share on other sites

I would use one of the existing product fields as an indicator (IE the location or supplier reference), set that to 1, and then modify product.tpl and product-list.tpl to hide the add to cart button if $product->location == 1

 

Thanks for the tip. I will try that :)

Link to comment
Share on other sites

I would use one of the existing product fields as an indicator (IE the location or supplier reference), set that to 1, and then modify product.tpl and product-list.tpl to hide the add to cart button if $product->location == 1

 

In product.tpl (existing theme) I have added the following block

 

{if $product.location == '1'}

//what to pu there to disable cart button completely?

{/if}

 

Also you have mentioned product-list.tpl... what code do I need to add there?

 

Sorry for all these question, but this is kinda urgent.

 

Thank you :)

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...