Home Forums WoodMart support forum move coupon field

move coupon field

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

    antoniosvan
    Participant

    Hello
    i want move coupon field in total cart it is possible?

    #553636

    antoniosvan
    Participant

    I use this code to function.php in the child theme:

    remove_action( ‘woocommerce_before_checkout_form’, ‘woocommerce_checkout_coupon_form’, 10 );
    add_action( ‘woocommerce_review_order_after_cart_contents’, ‘woocommerce_checkout_coupon_form_custom’ );
    function woocommerce_checkout_coupon_form_custom() {
    echo ‘<tr class=”coupon-form”><td colspan=”2″>’;

    wc_get_template(
    ‘checkout/form-coupon.php’,
    array(
    ‘checkout’ => WC()->checkout(),
    )
    );
    echo ‘</tr></td>’;
    }
    but the coupon field dont remove from the top position and appear twice.
    i inpute this code to the storefront theme and works fine, the problem is with the woodmart child theme.

    • This reply was modified 1 year, 5 months ago by antoniosvan.
    • This reply was modified 1 year, 5 months ago by antoniosvan.
    #553880

    Hung Pham
    Keymaster

    Hi antoniosvan,

    Thanks for reaching to us.

    First of all, take my apologies for the delay in answering because of the weekend.

    Unfortunately, it is not possible. HTML structure does not allow solving it by custom CSS. Such modification requires complicated Woocommerce code customization which is not covered by our support.

    Regards,

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