How to Add a WooCommerce Discount Automatically at Checkout
Vložit
- čas přidán 30. 07. 2024
- In this tutorial, we are going to show you 2 methods that will allow you to either have a pre-made WooCommerce coupon automatically applied to the cart, or have different discounts applied based on predetermined criteria.
LINKS:
Text Tutorial: diviengine.com/how-to-add-a-w...
Divi Engine Blog: diviengine.com/resources
Download and Import WooCommerce Sample Data: diviengine.com/downloading-an...
Create a Divi Child Theme: diviengine.com/set-divi-child...
Cloudways Hosting: www.cloudways.com/en/?id=143361
CHAPTERS:
0:00 Tutorial Introduction
1:32 Adding a Coupon Code Automatically based on Minimum Spend
8:47 Adding a Discount Automatically Based on the Number of Items in the Cart
13:43 Conclusion
This is an awesome tutorial. It's well paced and takes time to explain the code. Thank you so much!
Let me say that you are doing a great work now, i love these kind of videos that you are uploading these days. Congratulations and continue doing this.
Sorry for the delay, didnt see this comment - but glad I did now :D Thanks so much!
Will this works with any theme or this is only DIVI related?
Will this work for different products in cart?
Will this works with variable products?
Hi there! This should work with any WooCommerce site.
Perfect
Great workflow! Wondering how to do this but have it to discount only on certain days for specific products. Could that be done?
Hello @mikelmedia! Thanks for the kind words. To do that, you would need to do quite a bit of PHP coding to get that done. Sounds like a cool idea for another tutorial video in the future, so I will add it to my list.
@@DiviEngine awesome! Thanks for the reply. Looking forward to this
hey can you please share the code where, for all type of prepaid payment and get 10% off please help
How can we add a discount on the first order? Thanks BTW.
Hey there, Ahmad! This would require some extra code that adds logic to check the order history of the current user. I'll put this on my list for future tutorials.