Support » Plugin: Multi-Step Checkout for WooCommerce » Login Form Message

  • Resolved Steve Zehngut

    (@zengy)


    In the next revision, can you please make it so that a filter can be added to change the login form message? The message is currently hard coded on line 306 of settings-array.php. The current line is:

    ‘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.’, ‘wp-multi-step-checkout’ ),

    Please change it to something like:

    ‘message’ => apply_filters( ‘woocommerce_checkout_logged_in_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.’, ‘wp-multi-step-checkout’ ) ),

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Diana Burduja

    (@diana_burduja)

    Yes, you’re right, a filter belongs there. And “woocommerce_checkout_logged_in_message” is a good name for the filter. We’ll add it in the next plugin release.

    Thread Starter Steve Zehngut

    (@zengy)

    Thank you.

    DanceYrselfClean_Admin

    (@danceyrselfclean_admin)

    Have you got an example of what the code would look like using the filter to change the login form text.

    Plugin Author Diana Burduja

    (@diana_burduja)

    The “If you have shopped with us before, please enter …” message can be modified by adding the following PHP snippet to your child theme’s functions.php file:

    add_filter( 'woocommerce_checkout_logged_in_message', function($message) {
        return 'Your message here';
    });
    DanceYrselfClean_Admin

    (@danceyrselfclean_admin)

    Perfect thanks for that.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.