Forums / Built-in Shipping and Payment Modules / Change Shipping Method TEXT Wording

Change Shipping Method TEXT Wording

Views: 9,669

Results 21 to 23 of 23
4 Oct 2013, 12:31 AM
#21
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Change Shipping Method TEXT Wording

If you mean to change the $title, you can test for it around line 496 by adding the echo to the file, and do a View Source to see what is really there:
/includes/modules/shipping/usps.php

        // set the output title display name back to correct format
        $title = str_replace(array('RM', 'TM', '**'), array('®', '™', ''), $type_rebuilt);
[B]echo 'USPS title: ' . $title . '<br />';
if ($title == 'Priority Mail International®') {
  $title = 'FRED';
}[/B]

to see what you need to test for for an IF to change it ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

4 Oct 2013, 4:03 AM
#22
lidlchris avatar

lidlchris

Zen Follower

Join Date:
Feb 2013
Posts:
345
Plugin Contributions:
0

Re: Change Shipping Method TEXT Wording

Ajeh:

If you mean to change the $title, you can test for it around line 496 by adding the echo to the file, and do a View Source to see what is really there:
/includes/modules/shipping/usps.php

    // set the output title display name back to correct format
    $title = str_replace(array('RM', 'TM', '**'), array('®', '™', ''), $type_rebuilt);

[B]echo 'USPS title: ' . $title . '<br />';
if ($title == 'Priority Mail International®') {
$title = 'FRED';
}[/B]

> 
> to see what you need to test for for an IF to change it ...



perfect again... i had it coded about 10 lines below that and for some reason it didn't work..   plus i didn't have the &reg after the Priority Mail International.
4 Oct 2013, 1:51 PM
#23
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Change Shipping Method TEXT Wording

Yes 10 lines below it has a different value ... I picked that line to work with as the value was the cleanest without any extra changes to it from what comes back from USPS ... further down the value is changed and much harder to work with ...

Thanks for the update that this is now working for you ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!