Home Forums WoodMart support forum Moving coupon at the checkout

Moving coupon at the checkout

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #235814

    BertranddesmetsWM
    Participant

    Hi,

    I moved the coupon element before payment options with this:

    remove_action(‘woocommerce_before_checkout_form’, ‘woocommerce_checkout_coupon_form’, 10);
    add_action(‘woocommerce_review_order_before_payment’, ‘woocommerce_checkout_coupon_form’);

    The problem is coupon now submits the order. I tried to add this in the JS:

    (function($) {
    $(document).ready(function() {
    var coupon2 = $(“.checkout_coupon.woocommerce-form-coupon”);
    coupon2.insertAfter(‘.shop_table.woocommerce-checkout-review-order-table’);
    })
    })
    (jQuery);

    But I cannot figure out what is wrong with that.
    Can you please take a look at this?
    Thanks!

    #235821

    BertranddesmetsWM
    Participant

    Hi,

    I found my answer.
    Thanks anyway.
    Regards.

    #235864

    Hello,

    We are glad you have solved the issue. If you have any questions please feel free to contact us.

    Best Regards

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