Home Forums WoodMart support forum Move position of coupon form on checkout page

Move position of coupon form on checkout page

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #513825

    Kay
    Participant

    hi there,
    i want to change the position of the coupon form on checkout page.
    i want to change the position of the cfree shipping progress bar on checkout page.

    remove_action( 'woocommerce_checkout_billing', 'render_shipping_progress_bar_with_wrapper', 99 );
    and set to
    add_action( 'woocommerce_before_main_content', 'render_shipping_progress_bar_with_wrapper', 99 );

    both hooks seems not to work. what im doing wrong?

    cheers, kay

    • This topic was modified 1 year, 5 months ago by Kay.
    #514523

    Luke Nielsen
    Keymaster

    Hello,

    I apologize for the delay.

    I suggest you use the Layout builder for the cart page, thus you can sort elements per your needs: https://take.ms/3bvi43

    https://xtemos.com/docs-topic/woodmart-woocommerce-layout-builder/

    Let me know if you have any questions.

    Kind Regards

    #514524

    Kay
    Participant

    hi,

    1. no i dont use the layout builder, i just wanna poition it via a hook.
    2. please read! i’m talking about the checkout page, not cart page!

    best regards, kay

    #514881

    Luke Nielsen
    Keymaster

    Hello,

    Here is an example on how to remove it from the Checkout page:

    add_action( 'woocommerce_checkout_billing', function () {
        remove_action( 'woocommerce_checkout_billing', array( XTS\Modules\Shipping_Progress_Bar\Main::get_instance(), 'render_shipping_progress_bar_with_wrapper' ) );
    }, 5 );

    Based on this code you can add action that suits you.

    Kind Regards

    #515049

    Kay
    Participant

    that works, thank you very much!

    #515220

    Luke Nielsen
    Keymaster

    Hello,

    You are welcome. Always remember that you can reach out to us with any questions you may have.

    We wish you a splendid day!

    Kind Regards

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

The topic ‘Move position of coupon form on checkout page’ is closed to new replies.