PrestaShop Forum

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum

Jump to content

 

[Solved] How to remove add to cart at first?

6 replies to this topic
#1
Zigma

    PrestaShop Apprentice

  • Members
  • PipPip
  • 61 posts
How do I do if I wants to remove the add to cart button? I want the costumer to first click on "show me more about the product button" then choose size and add to cart.

#2
kenmcneill

    PrestaShop Newbie

  • Members
  • Pip
  • 20 posts
If you mean like the attached image, I did it by editing product-list.tpl in the theme folder.

I deleted this section-
            {if ($product.allow_oosp OR $product.quantity > 0) && $product.customizable != 2}
{l s='Add to cart'}
{else}
{l s='Add to cart'}
{/if}


Working well so far, but I did make a backup copy of the original file. :coolsmile:

(edit) Instead of deleting the code, you can comment it out by adding {* before and *} after the section you want ignored.

Attached Files



#3
nomad73

    PrestaShop Newbie

  • Members
  • Pip
  • 5 posts
YOU ARE A GOD!!

Been looking for this for sodding ages, cheers!

#4
2thepoint

    PrestaShop Apprentice

  • Members
  • PipPip
  • 46 posts
and how to remove the button ,customers may not order on the moment but i want it online

kind regards

#5
davidtnb

    PrestaShop Apprentice

  • Members
  • PipPip
  • 83 posts
Just what I was looking for, thanks for the great post!

#6
San Diego

    PrestaShop Apprentice

  • Members
  • PipPip
  • 407 posts
i found it better to ad text, to give the customer the choice,
many times the default size is fine for them so they don´t need one more step

to order

sd

#7
azhueonline2

    PrestaShop Apprentice

  • Members
  • PipPip
  • 29 posts
good share :lol: