businessbloomer.com
WooCommerce: Add Product to Cart When Visiting a Specific Page
We’ve already seen how to add a product to cart automatically when a user enters your website. However, I needed a different functionality on this same website, and specifically I wanted a product added to cart only when a user like you visits a specific WordPress page ID. If you wish to test, go to …