Discount at checkout - by Fantasy - on WordPress WooCommerce support

This topic has 7 replies, 3 voices, and was last updated 8 months, 1 weeks ago ago by Tony Rodriguez

  • Avatar: Fantasy
    Fantasy
    Participant
    March 6, 2025 at 14:14

    I am facing an issue with applying an automatic discount for specific payment methods in WooCommerce. I want to offer a 10% discount when customers select Net Banking, UPI, or QR Code as their payment method. However, the discount is also being applied to Cash on Delivery (COD) orders, which should not happen.

    Issue Details:
    The discount should apply only to Net Banking (bacs), UPI (upi), and QR Code (qr_code).
    It should not apply to COD (cod).
    The discount should be automatically added when customers select eligible payment methods.

    Files is visible for topic creator and
    support staff only.
    6 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    March 7, 2025 at 07:57

    Dear @Fantasy,

    Please also add this Javascript code snippet:

    
    jQuery( document ).ready(function() {
      jQuery(document).on('change','#payment',function(){
        jQuery( 'body' ).trigger( 'update_checkout' );
       });
    
    });
    

    Hope it helps!

    Avatar: Fantasy
    Fantasy
    Participant
    March 7, 2025 at 10:27

    I am not familiar with coding and unable to make these changes myself. Please implement this functionality for me or guide me on how to do it step by step.

    I appreciate your support and look forward to your quick response!

    Avatar: Justin
    Luca Rossi
    Support staff
    March 7, 2025 at 16:09

    Hi @Fantasy,

    We’ve added the JS code.

    Please check the checkout page again.

    Best regards,
    8Theme’s Team

    Avatar: Fantasy
    Fantasy
    Participant
    March 8, 2025 at 05:43

    it is not working in pay with UPI QR Code

    Avatar: Justin
    Luca Rossi
    Support staff
    March 9, 2025 at 15:33

    Hi @Fantasy,

    In this case, you have to double check your custom codes by yourself.

    For any additional customizations beyond the default functionalities, we kindly invite you to submit a request through our (https://www.8theme.com/account/#etheme_customization_panel). Please be advised that customization services may incur additional charges.

    Best regards,
    8Theme Team

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    April 16, 2025 at 16:55

    Dear Fantasy,

    As we continue our mission to exceed expectations, your insights become increasingly valuable. Could we, with all due respect, request your thoughtful feedback by giving our theme a deserved 5-star rating on ThemeForest?

    Click here to share your valuable perspective: https://themeforest.net/downloads

    Your time and trust are highly appreciated!

    Best Regards,
    The 8Theme Team

  • Viewing 7 results - 1 through 7 (of 7 total)

The issue related to '‘discount at checkout’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.