Jump to content

How to remove add to cart button from manufacturer product list? Presta 1.3.1


Recommended Posts

It looks like you've already removed the "Add to cart" button from all your product lists. If you want "Add to cart" displayed on category listings, but not manufacturer listings, then I suggest that you change line 47 of product-list.tpl (in PrestaShop v1.4.2) from:

{if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && $product.minimal_quantity == 1 && $product.customizable != 2 && !$PS_CATALOG_MODE}



to:

{if $page_name != 'manufacturer' && ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && $product.minimal_quantity == 1 && $product.customizable != 2 && !$PS_CATALOG_MODE}

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