Home Forums Basel support forum Add Custom Message in Checkout

Add Custom Message in Checkout

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #8182

    miguel1876
    Participant

    Hi there
    I would like to add a custom message to the Checkout Page, in the order review, just after the Shipping options, before the Total.

    I have tried to add several codes to the functions.php file but none work well. They all add the message twice at the top of the order review.

    // adds order note at checkout page shipping option
     
    function notice_shipping() {
    echo '<p id="allw">For FedEx overnight or express delivery, please call customer service.</p>';
    }
     
    add_action( 'woocommerce_review_order_after_shipping', 'notice_shipping' ); 

    Please see attached screenshot.

    Can you please help?

    Thanks so much.

    Cheers

    Attachments:
    You must be logged in to view attached files.
    #8194

    Artem Temos
    Keymaster

    Hello,

    Try to use this hook instead

    function notice_shipping() {
    echo '<p id="allw">For FedEx overnight or express delivery, please call customer service.</p>';
    }
     
    add_action( 'woocommerce_review_order_before_order_total', 'notice_shipping' ); 

    Regards

    #8198

    miguel1876
    Participant

    Hi

    That code doesn’t work well either. It also adds the custom message twice to the top of the order review.

    Please help.

    #8200

    Artem Temos
    Keymaster

    In this case, please provide your admin access and FTP credentials so we could look ourselves.

    Regards

    #8201

    miguel1876
    Participant

    Hi

    I added Login credentials in the private content area.

    Thank you

    #8202

    Artem Temos
    Keymaster

    Done, please check.

    #8203

    miguel1876
    Participant

    Perfect- Thank you very much!

    #8211

    Artem Temos
    Keymaster

    You are welcome!

Viewing 8 posts - 1 through 8 (of 8 total)