WoCommerce apply coupon automatically to the cart for specific products

If you are running Woocommerce store and provide frequent discounts to your customer, you may want to apply coupon code to the cart automatically on specific day/days of the week.

This is a great way to sky rocket your sales on a specific day of week and you can attract more customer by giving them best deals. Your customer need not to remember any coupon code, they know if they will buy products let’s say on any Saturday they will get particular discount for a selected products with given Qty.

To achieve this, first Create coupon code. You can follow this tutorial to get started if you are new.

Once you have coupon code – i.e Sat$10Off, go to your theme’s functions.php and add below code snippet.

Leave a Reply