How can I rename the shipping page in the checkout process

I am using Marketpress to sell tickets but these tickets will not be shipped to the customer instead they will just need email verification. I have changed the products to digital products which removes all the regular shipping fields and leaves me with just the required email address. Thats all perfect and what I want to happen but I would like to change the word "Shipping" from the checkout steps and replace it with something like "email". For Example instead of having the checkout steps looking like;
Review Cart » Shipping » Checkout » Confirm » Order Complete

I want it to look like;

Review Cart » Email » Checkout » Confirm » Order Complete

Thank You.

  • Jack Kitterhing
    • Code Norris

    Hi there @monkey1986

    I hope you are well today, you will need to use a translation tool such as poedit to modify the text from MarketPress > languages > mp-default.po :slight_smile:

    Here's a link on translating in WordPress http://codex.wordpress.org/Translating_WordPress.

    You could also use something like this here http://wordpress.org/plugins/codestyling-localization/ :slight_smile:

    Please let me know if you have any problems with this or anything, I'm here to help :slight_smile:

    Thank you for being a WPMU DEV member!

    Kind Regards
    Jack.

  • Jack Kitterhing
    • Code Norris

    Hi there @monkey1986

    Sorry I should have been clearer. Those links and details are for changing/translating the current language, as it's always better to do that even for 1 word that is the same language rather than editing a core plugin php file.

    Though if you did want to edit it within the PHP file, Download the plugin and open up marketpress.php, change shipping on lines 224 and 244, you shouldn't need to change any other instances apart from them, but if that doesn't work, please let me know, I'm here to help :slight_smile:

    Also please make sure you have an active and open FTP connection before editing any core files of the plugin in case something goes wrong, as if you don't have a open connection to FTP and something goes wrong, it can't be repaired.

    Thank you!

    Kind Regards
    Jack.

  • IT Monkey
    • Flash Drive

    Hi Jack,

    I have changed line 224 from :
    'shipping' => array (
    to:
    'email' => array (

    I also changed line 244 to:
    'email' => __('<p>Please enter your email information in the form below to proceed with your order.</p>', 'mp'),

    I'm still getting shipping showing up on the page. I can't see how this is happening.

    Thanks

  • IT Monkey
    • Flash Drive

    No problem

    Just to confirm I'm changing line 817-820 from

    case 'shipping':
              $content .= do_shortcode($mp->get_setting('msg->shipping'));
              $content .= _mp_cart_shipping(true);
              break;

    To:

    case 'email':
              $content .= do_shortcode($mp->get_setting('msg->email'));
              $content .= _mp_cart_shipping(true);
              break;
  • IT Monkey
    • Flash Drive

    Hi Jack this is the exact code i have for template-functions.php from line 814-844

    //handle checkout steps
          switch($checkoutstep) {
    
            case 'email':
              $content .= do_shortcode($mp->get_setting('msg->email'));
              $content .= _mp_cart_shipping(true);
              break;
    
            case 'checkout':
              $content .=  do_shortcode($mp->get_setting('msg->checkout'));
              $content .= _mp_cart_payment('form');
              break;
    
            case 'confirm-checkout':
              $content .=  do_shortcode($mp->get_setting('msg->confirm_checkout'));
              $content .= _mp_cart_table('checkout');
              $content .= _mp_cart_shipping(false);
              $content .= _mp_cart_payment('confirm');
              break;
    
            case 'confirmation':
              $content .=  do_shortcode($mp->get_setting('msg->success'));
              $content .= _mp_cart_payment('confirmation');
              break;
    
            default:
              $content .= do_shortcode($mp->get_setting('msg->cart'));
              $content .= _mp_cart_table('checkout-edit');
              $content .= _mp_cart_login(false);
              break;
          }

    I still get the word shipping coming up in the breadcrumbs and the description. I have also just noticed that I cant get past this page even when you hit checkout now you are not brought any further through the process, its stuck.

  • IT Monkey
    • Flash Drive

    I figured it out for anyone else who wants to change the word Shipping to email or whatever you want in the checkout breadcrumbs. Keep all lines of code the same the only line that needs changing is line 2120 of template-functions.php inside the margetpess-includes folder.

    Line 2120 BEFORE change:
    'shipping'=>__('Shipping','mp'),

    Line 2120 AFTER change:
    'shipping'=>__('Email','mp'),

    Thanks Jack for the help you sent me on the right path.

  • Vinod Dalvi
    • WP Unicorn

    Hi @supert,

    Thanks for posting on the forum.

    The line number is changed from 2120 to 2841 in the latest version( 2.9.5.2 ) of following MarketPress plugin file.

    marketpress/marketpress-includes/template-functions.php

    Please advise if you have more questions.

    Best Regards,
    Vinod Dlavi

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.