Jump to content

[Solved] How to remove the "Add to cart" Bottom!


Recommended Posts

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

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

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

Link to comment
Share on other sites

  • 2 months later...

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

  • 3 months later...
  • 1 year later...

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

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