• Resolved Javier Gobea

    (@jandabt)


    Would it be possible to move the terms and conditions to just before payment? Being an “insite” payment you may not see it down there. What hook or filter can I use? Thank you

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author giannis4

    (@giannis4)

    Hi Javier,

    Thank you very much for using the Terms and Conditions per product.

    To move the checkout checkboxes, you first have to remove the default action and then add a new action linked to the checkout page hook.

    You can use the following code for it (place it in your child theme’s functions.php file):

    
    /**
     * Move the checkout terms checkbox to a different checkout position
     */
    add_action( 'init', 'tacpp_change_terms_place' );
    function tacpp_change_terms_place() {
        
        // Remove checkout terms checkboxes from the default position
        remove_action( 'woocommerce_review_order_before_submit',
            array( 'TACPP4_Terms_Conditions_Per_Product', 'add_checkout_per_product_terms' ) );
        
        // Place the checkout terms checkboxes before the payment
        add_action( 'woocommerce_review_order_before_payment',
            array( 'TACPP4_Terms_Conditions_Per_Product', 'add_checkout_per_product_terms' ) );
    }
    

    Please let me know if it works for you.

    Plugin Author giannis4

    (@giannis4)

    Hi Javier,

    I hope you are well.

    I will mark this topic as resolved since there was no reply.

    If you are happy using our plugin, I would appreciate it if you added a review.

    Best regards,
    Giannis

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Move terms above payment info’ is closed to new replies.