• Resolved koupmi

    (@koupmi)


    Hello,
    I adjusted terms.php just simple adding text over checkbox.

    <p>Mine text</p>
    				<input type="checkbox" class="woocommerce-form__input woocommerce-form__input-checkbox input-checkbox" name="terms" <?php checked( apply_filters( 'woocommerce_terms_is_checked_default', isset( $_POST['terms'] ) ), true )

    Problem is, this file i cant mofify as my template. Woocommerce does not use file in directory /themes/gp/woocommerce/templates/checkout instead it use still plugin directory wp-content/plugins/woocommerce/templates/checkout what mean after next update my modify will gone.

    • This topic was modified 4 years, 1 month ago by koupmi.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    Hi there,

    I don’t quite understand the question here – are you wondering how to override woocommerce/templates/checkout/terms.php without losing your changes in a future update?

    If so, you’ll want to place that override in a child theme. For more information on how that works, have a look at the following guide: https://www.dreamhost.com/wordpress/how-to-customize-woocommerce-child-theme/

    Thread Starter koupmi

    (@koupmi)

    Yes it’s the question. This article i read before.

    I did step 1 and step 3:

    1. I used this snippet to function.php in my child theme

    function mytheme_add_woocommerce_support() {
    add_theme_support( 'woocommerce' );
    }
    add_action( 'after_setup_theme', 'mytheme_add_woocommerce_support' );

    2. I did everything as is described in step 3, but terms.php is still unchanged.

    Did I miss something?

    • This reply was modified 4 years, 1 month ago by koupmi.
    • This reply was modified 4 years, 1 month ago by koupmi.
    Mike W

    (@nixiack8)

    Hi @koupmi,

    This depends on the theme in question. If the parent theme has some overrides, it might be conflicting with the internal overrides of the child. Check with your theme provider and they can assist in ensuring the correct area is overridden in the Child theme without potentially conflicting with the Parent ??

    Plugin Support Damianne P (a11n)

    (@drwpcom)

    Hi @koupmi. We haven’t heard from you in a while so I’m going to go ahead and mark this thread as resolved. If you still need help with this issue or have any other questions about the WooCommerce plugin, please start a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘terms.php as custom template’ is closed to new replies.