• Resolved lemonunicycle

    (@lemonunicycle)


    Hello,

    I want to change the checkout text to ask for the customers address replacing the additonal infomation.

    How do I do this? do I edit the shortcode
    [fooditem_checkout]?

    here is an edited view I want to achieve.

    View post on imgur.com

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Nirmal Kumar Ram

    (@sagarseth9)

    You just want to change the text?

    Thread Starter lemonunicycle

    (@lemonunicycle)

    Yes please, Where do I do that?

    Plugin Author Nirmal Kumar Ram

    (@sagarseth9)

    Just add the following code to your child theme’s functions.php file

    add_filter( 'gettext', 'rpress_change_order_details_text', 20, 3 );
    
    function rpress_change_order_details_text( $translated_text, $text, $domain ) {
    
        if ( $domain == 'restropress' ) {
    
            switch ( $translated_text ) {
    
                case '%s Instructions' :
    
                    $translated_text = __( 'Please enter your address', 'restropress' );
                    break;
    
                case 'Add %s instructions (optional)' :
    
                    $translated_text = __( 'Add Address', 'restropress' );
                    break;
            }
    
        }
    
        return $translated_text;
    }
    Thread Starter lemonunicycle

    (@lemonunicycle)

    Thank you so much.

    Perfect

    • This reply was modified 5 years, 9 months ago by lemonunicycle.

    @sagarseth9 I would like to remove email address field or change non-mandatory on email address field on checkout page. How can I do it bro?

    Hello @ilowoo,

    Sorry for the late response.
    The work as per your requirement will be possible by custom work.
    You can contact through our official website to do the custom work.

    Regards,
    Bibhu

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Change Checkout text’ is closed to new replies.