• Resolved bahl2

    (@bahl2)


    Hi! You can help me?
    I need change position coupon code in step i try desable the woocommerce_checkout_coupon_form and add woocommerce_after_checkout_form but i have him in all steps and i need in just step. How is possible solved this?

    Thx!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter bahl2

    (@bahl2)

    i need in just a step*

    Plugin Author Diana Burduja

    (@diana_burduja)

    Hello,

    normally the coupon form is under the Order step. You want to move the coupon from the Order step to which step?

    Thread Starter bahl2

    (@bahl2)

    Hi! Thx for answers
    I need this: https://i.imgur.com/90Yr8IU.png
    move to down of page, after order view.

    If i remove the hook action of your plugin and add native woo. Him print in all steps.

    Thx!

    Plugin Author Diana Burduja

    (@diana_burduja)

    The coupon form needs to be wrapped into an <div id=”checkout_coupon”> element in order for the multi-step checkout plugin to show it only on the Order step.

    Instead of removing and adding the hooks I’d suggest to move the coupon section with the following JS code:

    jQuery(document).ready(function($) {
         $( '#checkout_coupon' ).appendTo( '.wpmc-steps-wrapper' );  
    });

    or, if you prefer to add the JS code in the form of a PHP snippet:

    add_action( 'wp_head', function() {
        ?>
            <script type="text/javascript">
            jQuery(document).ready(function($) {
                $( '#checkout_coupon' ).appendTo( '.wpmc-steps-wrapper' );  
            });
            </script>
    <?php
    });
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change position of coupon hook’ is closed to new replies.