Support » Plugin: RestroPress - Online Food Ordering System » Change Checkout text

  • 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.
    https://imgur.com/x9gKlct

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

    (@sagarseth9)

    You just want to change the text?

    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;
    }

    Thank you so much.

    Perfect

    @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?

    Plugin Support bibhuprakash123

    (@bibhuprakash123)

    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)
  • You must be logged in to reply to this topic.