How to automatically add a WooCommerce product to cart on page load

WooCommerce recommends to automatically add a product to cart with a code snippet you can add to your (child-)themes functions.php: https://docs.woocommerce.com/document/automatically-add-product-to-cart-on-visit/ This code works fine …

How to automatically add a WooCommerce product to cart on page load Read More »