How to Add a WooCommerce Discount Automatically at Checkout

Sdílet
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

Komentáře • 12

  • @mandirasolutions3788
    @mandirasolutions3788 Před 9 měsíci

    This is an awesome tutorial. It's well paced and takes time to explain the code. Thank you so much!

  • @ChromeCrown
    @ChromeCrown Před 2 lety

    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.

    • @DiviEngine
      @DiviEngine  Před 2 lety

      Sorry for the delay, didnt see this comment - but glad I did now :D Thanks so much!

  • @antonbaton1120
    @antonbaton1120 Před rokem +1

    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?

    • @DiviEngine
      @DiviEngine  Před rokem

      Hi there! This should work with any WooCommerce site.

  • @muradfataliyev1345
    @muradfataliyev1345 Před 2 lety

    Perfect

  • @mikelmedia
    @mikelmedia Před rokem +1

    Great workflow! Wondering how to do this but have it to discount only on certain days for specific products. Could that be done?

    • @DiviEngine
      @DiviEngine  Před rokem

      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.

    • @mikelmedia
      @mikelmedia Před rokem

      @@DiviEngine awesome! Thanks for the reply. Looking forward to this

  • @gangwalbhai680
    @gangwalbhai680 Před rokem

    hey can you please share the code where, for all type of prepaid payment and get 10% off please help

  • @ahmadkhan-yv7rj
    @ahmadkhan-yv7rj Před rokem +1

    How can we add a discount on the first order? Thanks BTW.

    • @DiviEngine
      @DiviEngine  Před rokem

      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.