Add Product to Cart if Cart Empty Woocommerce

Add Product to Cart if Cart Empty Woocommerce
73 Views

We can add product to WooCommerce cart using add_to_cart() function with $product_id.

Code goes in function.php file of your active child theme (or active theme).

Was this article helpful?
YesNo

Leave a comment

Your email address will not be published.