• Resolved Leo.Lin

    (@bi1012037)



    Depiction:The “Pay by wallet” button on the page is still checked, but the amount in the final order is not discounted.

    After completing the verification, the final checkout amount was not 9499 but 9500

    MP4 Path:https://i.imgur.com/0d24LuB.mp4

    I have added the following reminder to the function of wc_checkout_validate_billing_total(function.php), which will affect the Pay by wallet function after sending it.
    How should I modify the code so that I can continue to use the discounted amount of pay by wallet to send orders after correcting the reminder in 『wc_add_notice( ‘SMS’,’error’)』?

    add_action('woocommerce_checkout_process','wc_checkout_validate_billing_total');
    function wc_checkout_validate_billing_total(){
    ...
    ...
    wc_add_notice( __( "SMS security verification 1 SMS verification is required for a single order of $5,000  or more!"), 'error' );
    wc_add_notice( __( "Card payment reminder : Customers who use credit cards to check out are only allowed to use a verified card number for payment when a single order exceeds $5,000"), 'error' );
    
    ...
    
    ...
    }
    • This topic was modified 1 year, 4 months ago by Leo.Lin.
    • This topic was modified 1 year, 4 months ago by Leo.Lin.
    • This topic was modified 1 year, 4 months ago by Leo.Lin.
    • This topic was modified 1 year, 4 months ago by Leo.Lin.
    • This topic was modified 1 year, 4 months ago by Leo.Lin.
    • This topic was modified 1 year, 4 months ago by Leo.Lin.
    • This topic was modified 1 year, 4 months ago by Leo.Lin.
    • This topic was modified 1 year, 4 months ago by Leo.Lin.
  • The topic ‘There is a bug on the checkout page when paying by wallet’ is closed to new replies.