• Resolved dantahoua

    (@dantahoua)


    Hello, I want o make a simple thing. I want to move the Terms and Condition box below the “I accept Terms and condition” checkbox.

    I tried this but the Remove action do not remove the box. The add action works as intended.

    remove_action('woocommerce_checkout_terms_and_conditions','wc_checkout_privacy_policy_text');
    remove_action('woocommerce_checkout_terms_and_conditions','wc_terms_and_conditions_page_content');
    add_action('woocommerce_checkout_after_terms_and_conditions','wc_checkout_privacy_policy_text');
    add_action('woocommerce_checkout_after_terms_and_conditions','wc_terms_and_conditions_page_content');
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Ryan Ray, a11n

    (@ryanr14)

    Hi @dantahoua,

    The snippet was close, but it was missing a couple of priority arguments to make sure they worked as they should.

    remove_action('woocommerce_checkout_terms_and_conditions','wc_checkout_privacy_policy_text', 20);
    remove_action('woocommerce_checkout_terms_and_conditions','wc_terms_and_conditions_page_content', 30);
    add_action('woocommerce_checkout_after_terms_and_conditions','wc_checkout_privacy_policy_text');
    add_action('woocommerce_checkout_after_terms_and_conditions','wc_terms_and_conditions_page_content');

    The template file that loads these gives you that clue in a comment. ??


    Link to image: https://cld.wthms.co/PdDXQI

    Thread Starter dantahoua

    (@dantahoua)

    Thanks! It’s working great! ??

    Luminus Alabi

    (@luminus)

    Automattic Happiness Engineer

    Hey @dantahoua,

    Glad to hear you’ve got that working now.

    I’ll go ahead and mark this as resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Move Terms and Condition box below’ is closed to new replies.