Taking back the Add To Cart button in the Product list (Prestashop 1.7)

If you started using PrestaShop 1.7 (brave!) and you miss the Add to Cart button in the product list, let’s see how to take it back with 4 lines of code!

You like the tuts and want to say "thank you"? Well, you can always feel free to donate:

  • Carl Valcke

    Hello Nemo,

    For any reason it doesn’t seem to work on my site.
    Also the display is not working fine.

    I am also looking to tweek the code you have made to use the prestashop translation according to the langauage used.

    Thanks for your help!

  • NemoPS

    This is exclusively for 1.7, 1.6 already supports the add to cart button. If not, check your theme options, or copy it straight from the 1.6 default template :)

  • G N Vinod Kumar

    Hi. Thanks for the tutorial. It works perfect. But products which are not in stock or out of stock, then also, it shows Add to Cart button. If a customer clicks add to cart button, it shows pop up message of successfully added to cart without any product. And products with attributes like size and colours, by default which product will be added in catalogue view. Do we have any control over that. Thank You

  • Yes

    Hello, Fabio.
    This method doesn’t work if customer logged in.
    No errors in console. can you assist?

    • Yes

      Ok, found it by myself.
      add this into code

      and then it works flawlessly

  • Caglar

    Beautiful and life saver post. Thanks a lot!

  • Ibrahim Roman Morlans

    Can you paste de code here please? or where can copy? too long for take from the video :-)

    Thanks for your great website!!

  • Coco

    Nice tip thanks! I was wondering if you know how to put back the price range selector that was available in PS 1.6vs and that disappear for 1.7? :(

    • Fabio Porta

      I guess they just got rid of it :(

      • Coco

        how disappointing :/

        • NemoPS

          You can try out http://thirtybees.com, it’s a prestashop 1.6 fork :)

        • Coco

          Thanks for the advice. On the off-chance, do you know how to put javascript in a tpl file?

    • NemoPS

      I guess they just got rid of it :(

  • Serproo Gcv

    This works for me in prestashop but not when u use first the faceted filter ?

  • Neo

    Unfortunately, this don’t work in PS, the button indicates the click, but nothing happens.

You like the tuts and want to say "thank you"? Well, you can always feel free to donate:

Need Help?

Hire me