• Breaking News

    Wednesday, January 10, 2018

    How to add "add To Cart" button in Divi/Extra theme | MilonFairEdu


    Leif Ottosson asked about the ‘Add to Cart’ button on the Divi/WooCommerce shop page. When adding the Divi Shop Module to a page via the Page Builder, the list of products on that page does not include an ‘Add to Cart’ button. The idea being that the user should first view the product before adding it to their cart.

    Sometimes, however, it may be quicker or better (from a UX  perspective) to allow your user to add to their cart, straight from the product list page.



    This can be achieved by using the following PHP code snipped, either in the functions.php file of your child theme, or in a plugin.


    Replace the ‘dac’ prefix with any prefix of your own and you should now see the ‘Add to Cart’ button underneath the products on any page where you have used the Shop module.

    No comments:

    Popular Articles

    Haking Tips – Milon's Blog

    Freelancing – Milon's Blog

    Recent Posts

    WordPress

    Services