linsy Posted June 18, 2011 Share Posted June 18, 2011 How to remove add to cart button from manufacturer product list?Presta 1.3.1here is link to my site.http://linsy.eu/manufacturer.php?id_manufacturer=5 add to cart button here in danish tilfoj til kurvbest regards to all prestashop people Link to comment Share on other sites More sharing options...
rocky Posted June 25, 2011 Share Posted June 25, 2011 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now