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 is 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.
Like comment and share this video with your friends. Please don’t forget to subscribe to my channel 🙂
Milon’s Blog: https://shmilon.com/blog
Blogger Site: https://milonfairedu.blogspot.com/
Like our Page: https://www.facebook.com/ShmilonOfficial
Follow Me: https://www.twitter.com/sazidhasanmilon
Thank you so much.