Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #328145

    NightFox
    Participant

    Trying to edit this text in checkout page:
    “If you have shopped with us before, please enter your details in the boxes below. If you are a new customer please proceed to the Billing & Shipping section.

    Are you able to please tell me how to apply this text to the child theme’s function.php so that we are not limited to the hardcoded WC edit version? I’ve been using this code in the child theme’s function php doc, but can’t get it to work on front end, keep getting an error.

    I’ve been pasting exactly as follows into the functions.php doc

    <?php
    /**
    * Checkout login form
    *
    * @author WooThemes
    * @package WooCommerce/Templates
    * @version 2.0.0
    */
    if ( ! defined( ‘ABSPATH’ ) ) {
    exit; // Exit if accessed directly
    }
    if ( is_user_logged_in() || ‘no’ === get_option( ‘woocommerce_enable_checkout_login_reminder’ ) ) {
    return;
    }
    $info_message = apply_filters( ‘woocommerce_checkout_login_message’, __( ‘Returning customer?’, ‘woocommerce’ ) );
    $info_message .= ‘ ‘ . __( ‘Click here to login’, ‘woocommerce’ ) . ‘‘;
    wc_print_notice( $info_message, ‘notice’ );
    ?>

    <?php
    woocommerce_login_form(
    array(
    ‘message’ => __( ‘If you have shopped with us before, please enter your details in the boxes below. If you are a new customer please proceed to the Billing & Shipping section.’, ‘woocommerce’ ),
    ‘redirect’ => wc_get_page_permalink( ‘checkout’ ),
    ‘hidden’ => true
    )
    );
    ?>

    #328156

    Lely
    Moderator

    Hey there,

    Thanks for writing in! Regretfully this isn’t a feature offered by X. It could be possible with custom development, but this would be outside the scope of support we can offer. As stated on the upper right side of this page we cannot provide support for 3rd party plugins or scripts. You may wish to consult a developer to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities. Thanks for understanding. Take care!

    #328164

    NightFox
    Participant

    Sure, got it, understand it’s a Woocommerce thing, wldnt expect 3rd party support from you.

    It’s not an issue to manage this via the usual standard WC php doc edits – that works great. I’ve simply not been able to make it work via the child theme’s function.php document, from the theme.

    Is it that the child theme is unable to do it? Can you please confirm? If this is the case we’ll know to manage via the WC docs.

    Thx for your confirm.

    #328166

    Rue Nel
    Moderator

    Hello There,

    Please try to create a woocommerce folder in your child theme and place your customized woocommerce templates there.

    For more details in override the woocommerce templates, please check it out here:
    http://docs.woothemes.com/document/template-structure/

    Let us know if this has been helpful to you.

    #328187

    NightFox
    Participant

    Thanks so much, just what I needed. All good, all perfect, appreciate it.

    #328197

    Lely
    Moderator

    You’re welcome.