sab Posted June 9, 2009 Share Posted June 9, 2009 How I can remove the add to cart bottom? I just want to display the products, not to sell them! Link to comment Share on other sites More sharing options...
sab Posted June 9, 2009 Author Share Posted June 9, 2009 How I can remove the add to cart bottom? I just want to display the products, not to sell them! Anyone? Link to comment Share on other sites More sharing options...
jhnstcks Posted June 10, 2009 Share Posted June 10, 2009 You need to go through the tpl files in your theme folder and modules folders and remove the approproiate code, featured products is located at modules/homefeatured/homefeatured.tpl, and the product page is located at themes>yourtheme>product.tpl Link to comment Share on other sites More sharing options...
SotEW Posted June 10, 2009 Share Posted June 10, 2009 hello,I see 3 places where the 'add to cart' button is displayed. here is those places and the way to remove the button.in product.tpl :file /themes/yourtheme/product.tpl, comment or delete line 225 quantity == 0} style="display:none;"{/if} id="add_to_cart" class="buttons_bottom_block"><input type="submit" name="Submit" value="{l s='Add to cart'}" class="exclusive" /></p> In the home features :file /modules/homefeatured/homefeatured.tpl, comment or delete lines 21 to 25 {if ($product.quantity > 0 OR $product.allow_oosp) AND $product.customizable != 2} {l s='Add to cart' mod='homefeatured'} {else} {l s='Add to cart' mod='homefeatured'} {/if} Finally, in all lists of products :file /themes/yourtheme/product-list.tpl, comment or delete lines 20 to 24 {if ($product.allow_oosp OR $product.quantity > 0) && $product.customizable != 2} {l s='Add to cart'} {else} {l s='Add to cart'} {/if} There you go.Don't forget to backup your files before any modification. Link to comment Share on other sites More sharing options...
sab Posted June 10, 2009 Author Share Posted June 10, 2009 It has worked, thank you guys. The "Add to cart" Bottom has vanished, but I need to remove the price and the quantity number too, I want to use PrestaShop not as shopping cart but as catalog for a company products, that if I can of course.Thanks for your fast feedback, waiting for the new replies. Link to comment Share on other sites More sharing options...
Patric Posted June 10, 2009 Share Posted June 10, 2009 Create a new topic or search for the forum. It must have already been discussed. Link to comment Share on other sites More sharing options...
zanpo Posted August 20, 2009 Share Posted August 20, 2009 this is a nice solution, but doesn't work that goodtake my site for example, if i add more than 1 pieces at the quantity tab, and then i pess enter, it goes to the basket and then to checkout. Link to comment Share on other sites More sharing options...
shaiss Posted August 26, 2009 Share Posted August 26, 2009 Worked perfect for me!I just needed to remove add to cart from the product listing and homepagefeatured module!Thank you! hello,I see 3 places where the 'add to cart' button is displayed. here is those places and the way to remove the button.in product.tpl :file /themes/yourtheme/product.tpl, comment or delete line 225 quantity == 0} style="display:none;"{/if} id="add_to_cart" class="buttons_bottom_block"><input type="submit" name="Submit" value="{l s='Add to cart'}" class="exclusive" /></p> In the home features :file /modules/homefeatured/homefeatured.tpl, comment or delete lines 21 to 25 {if ($product.quantity > 0 OR $product.allow_oosp) AND $product.customizable != 2} {l s='Add to cart' mod='homefeatured'} {else} {l s='Add to cart' mod='homefeatured'} {/if} Finally, in all lists of products :file /themes/yourtheme/product-list.tpl, comment or delete lines 20 to 24 {if ($product.allow_oosp OR $product.quantity > 0) && $product.customizable != 2} {l s='Add to cart'} {else} {l s='Add to cart'} {/if} There you go.Don't forget to backup your files before any modification. Link to comment Share on other sites More sharing options...
dmech01 Posted December 6, 2009 Share Posted December 6, 2009 It worked for me too, Thanks!But even now i see the cart link at the top right hand side of all the pages displayed just next to the 'your account' link.How can i remove this? Link to comment Share on other sites More sharing options...
Lopik Posted October 18, 2011 Share Posted October 18, 2011 I tried to disable the "add to cart" button using this method. And with the other guide from the Internet - unfortunately any edition of the TPL file has no effect. It seems to me that this is due to changes in the code PrestShop latest version 1.4.4.1 which I use. Anyone knows where and how can I change this? I wanted to disable the button "add to cart&" of products featured and completely clear the field "quantity". 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