Forums / Templates, Stylesheets, Page Layout / change usps wording - international

change usps wording - international

Started by sbbemn on 3 Jan 2011, 2:11 PM · Views: 1,035

Results 1 to 11 of 11
3 Jan 2011, 2:11 PM
#1
sbbemn avatar

sbbemn

Zen Follower

Join Date:
Jan 2010
Posts:
182
Plugin Contributions:
0

change usps wording - international

So with this new Jan 2nd USPS glitch that has been fixed (whew), I would like to bring this to someone's attention.

I never have figured out why I can change the text of say..

Line 107 of /includes/modules/shipping/usps.php
'PRIORITY' => 'Priority Mail with Delivery Confirmation',

from just saying Priority Mail.

But I can't change the International wording or it breaks the code? Do the two asterisks ** at the end really make the difference?

3 Jan 2011, 2:26 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: change usps wording - international

That is everything from the USPS site and the matches are based on what they send ...

If you change them, then they do not match ...

That is one of the things that I do not like with the code, at this time, and will be looking into it further for a future release one day ...

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!

3 Jan 2011, 2:47 PM
#3
sbbemn avatar

sbbemn

Zen Follower

Join Date:
Jan 2010
Posts:
182
Plugin Contributions:
0

Re: change usps wording - international

Cool.

Is is o.k. that I changed the Domestic wording?

It doesn't appear to have made any errors (6 months now)

It's also nice the wording shows on the invoices the same way.
##########################################################################################___

On a similar note in the UPS box we have 3 options. I would like to add a link all by itself back to a product page to add $20 Saturday Shipping charge.
(I could do an order_total like I did with Signature Required but our payment page is already filled up quite a bit)

From what I gather if this is correct:

  1. define a name
  2. put that define name and link in the checkout_shipping template.
    What I'm stumped on is getting it in the right location on the page.
    I'd like it below the United Parcel Service Heading and above the checkbox options.
24 May 2012, 1:54 PM
#4
sbbemn avatar

sbbemn

Zen Follower

Join Date:
Jan 2010
Posts:
182
Plugin Contributions:
0

Re: change usps wording - international

So I'm back full circle to this again. This time is a little different.

As of 5/22/12 we do not offer First-Class Mail International Parcel** anymore. We are shipping them all International Priority Airmail (IPA) - but at the SAME PRICE. All I'd like to do is use the First-Class rates like we have been but change the wording to reflect IPA. We will be guaranteed more International business by doing this change. 50% of our visitors are International... One item for crappy First-Class may be $11, then Priority Mail $35 :shocking: = abandoned cart.

24 May 2012, 2:17 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: change usps wording - international

Could you edit the file:
/includes/modules/usps.php

and add the line in RED:

// add $this->usps_countries to title to test actual country
echo 'Type: ' . $type . ' Title: ' . $title . ' cost: ' . $cost . '<br>';
          $methods[] = array('id' => $type,
                             'title' => $title,
                             'cost' => ($cost * $shipping_num_boxes) + (MODULE_SHIPPING_USPS_HANDLING_METHOD == 'Box' ? $usps_handling_fee * $shipping_num_boxes : $usps_handling_fee) );

then post the line for what you want to use and how you want it to read?

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!

24 May 2012, 2:56 PM
#6
sbbemn avatar

sbbemn

Zen Follower

Join Date:
Jan 2010
Posts:
182
Plugin Contributions:
0

Re: change usps wording - international

Thank you for your guidance. We also use other methods - PMI, Express, Global.

When inserting that code, it's shoving the whole site down at at the top is the below...
Also drastically changing the css. I am unclear as how to assign "International Priority Airmail".

Type: Global Express Guaranteed (GXG)** Title: Global Express Guaranteed (GXG) (1 - 3 business days) cost: 69.75
Type: Express Mail International Title: Express Mail International (3 - 5 business days) cost: 38.00
Type: Priority Mail International Title: Priority Mail International (6 - 10 business days) cost: 31.75
Type: First-Class Mail International Parcel** Title: First-Class Mail International Parcel (Varies by destination) cost: 6.70

24 May 2012, 3:03 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: change usps wording - international

Which one(s) do you want to read different and how do you want them to read ...

NOTE: ignore the moofy look for now that is caused by the echo ...

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!

24 May 2012, 3:10 PM
#8
sbbemn avatar

sbbemn

Zen Follower

Join Date:
Jan 2010
Posts:
182
Plugin Contributions:
0

Re: change usps wording - international

'First Class Mail Int Parcel' => 'First-Class Mail International Parcel**', // ID="15" Changed Package to Parcel

On site:

First-Class Mail International Parcel (Varies by destination)

should read

International Priority Airmail - under 3 weeks (Varies by destination)

24 May 2012, 3:30 PM
#9
ajeh avatar

ajeh

Oba-san

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

Re: change usps wording - international

Change the code around line 299 to read with the code in RED:

// bof: change title
if ($title == 'First-Class Mail International Parcel (Varies by destination)') {
  $title = 'International Priority Airmail - under 3 weeks (Varies by destination)';
}
// eof: change title
// add $this->usps_countries to title to test actual country
// echo 'Type: ' . $type . ' Title: ' . $title . ' cost: ' . $cost . '<br>';
          $methods[] = array('id' => $type,
                             'title' => $title,
                             'cost' => ($cost * $shipping_num_boxes) + (MODULE_SHIPPING_USPS_HANDLING_METHOD == 'Box' ? $usps_handling_fee * $shipping_num_boxes : $usps_handling_fee) );

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!

24 May 2012, 3:45 PM
#10
sbbemn avatar

sbbemn

Zen Follower

Join Date:
Jan 2010
Posts:
182
Plugin Contributions:
0

Re: change usps wording - international

EXCELLENT, thank you Ajeh!

As a recap to others... To change the International Shipping Method wording during checkout and the order...

Above // add $this->usps_countries to title to test actual country** in** /includes/modules/shipping/usps.php insert

// bof: change title
if ($title == 'First-Class Mail International Parcel (Varies by destination)') {
$title = 'YOUR WORDING HERE';
}
// eof: change title

For other shipping methods, copy and paste exactly what your site outputs on your shipping page.

24 May 2012, 4:08 PM
#11
ajeh avatar

ajeh

Oba-san

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

Re: change usps wording - international

Thanks for the update that this is working for you now ... :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!