Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / USPS First Class International - Adding a comment on check out

USPS First Class International - Adding a comment on check out

Views: 3,200

Results 1 to 14 of 14
24 Nov 2010, 12:45 AM
#1
sharni avatar

sharni

New Zenner

Join Date:
Aug 2008
Posts:
38
Plugin Contributions:
0

USPS First Class International - Adding a comment on check out

I started offering First Class International a few months ago to try and offer cheaper shipping to my OS customers. However, my post office does not issue tracking numbers for First Class International. I have had several customers ask for tracking and I cannot give it to them. So I would like a statement to show up next to the option stating that no tracking would be given, so they can elect to pay more for priority international instead.

I tried to edit usps.php on that line, but then the option did not show up. So is there a way I can put it in there? I have stated it in my terms and conditions, but no one ever reads that kind of thing anyway. I just want them to be aware.

Sharni
https://www.nappyshoppe.com

24 Nov 2010, 1:02 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: USPS First Class International - Adding a comment on check out

You could change the code to read:

          $cost = preg_replace('/[^0-9.]/', '',  $cost);
          if ($type == 'First-Class Mail International Package') {
            $title .= ' (No Tracking)';
          }

24 Nov 2010, 1:12 AM
#3
sharni avatar

sharni

New Zenner

Join Date:
Aug 2008
Posts:
38
Plugin Contributions:
0

Re: USPS First Class International - Adding a comment on check out

In what file where?

Sorry

Sharni
https://www.nappyshoppe.com

24 Nov 2010, 1:15 AM
#4
ajeh avatar

ajeh

Oba-san

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

Re: USPS First Class International - Adding a comment on check out

I would customize the USPS shipping module in:
/includes/modules/shipping/usps.php

and find the line in black and add the code in red below it ...

24 Nov 2010, 2:19 AM
#5
sharni avatar

sharni

New Zenner

Join Date:
Aug 2008
Posts:
38
Plugin Contributions:
0

Re: USPS First Class International - Adding a comment on check out

Thank you so much. This will save my international customers some grief.

Please enjoy a coffee on me.

Sharni

24 Nov 2010, 2:47 AM
#6
ajeh avatar

ajeh

Oba-san

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

Re: USPS First Class International - Adding a comment on check out

You are most welcome ... thanks for the coffee! It's always a great help to us all ... :smile:

17 Jul 2011, 2:20 PM
#7
littlekid440 avatar

littlekid440

New Zenner

Join Date:
Dec 2009
Posts:
55
Plugin Contributions:
0

Re: USPS First Class International - Adding a comment on check out

Hello
I tried using this code and nothing changed
I am using the
"USPS January 2, 2011 C"
version of the USPS module you wrote.

17 Jul 2011, 3:09 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: USPS First Class International - Adding a comment on check out

Did you do the REMOVE, INSTALL and reconfigure on the USPS Shipping module?

If you click on it, what do you see on the right panel?

What are your settings in the Configuration ... Shipping/Packaging ...

What is the Ship From and Ship To addresses that you are testing?

What is the Weight that you are testing?

17 Jul 2011, 4:46 PM
#9
littlekid440 avatar

littlekid440

New Zenner

Join Date:
Dec 2009
Posts:
55
Plugin Contributions:
0

Re: USPS First Class International - Adding a comment on check out

Thank you for your response

Yes I have tried using the method of removing - installing - configuring and still no luck

This is what I see:
United States Postal Service
$67.50 Global Express Guaranteed Non-Document Rectangular (1 - 3 business days)
$35.75 Express Mail International (3 - 5 business days)
$30.50 Priority Mail International (6 - 10 business days)
$12.39 First-Class Mail International Package** (Varies by country)

(the price is actually on the right side but when I copied and pasted it comes on the left side)

The Ship From and Ship To address are both United Kingdom address

I'm testing with the weight of 1lbs and package tare of 0:0

17 Jul 2011, 5:01 PM
#10
ajeh avatar

ajeh

Oba-san

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

Re: USPS First Class International - Adding a comment on check out

What exactly are you having an issue with? :unsure:

17 Jul 2011, 5:14 PM
#11
littlekid440 avatar

littlekid440

New Zenner

Join Date:
Dec 2009
Posts:
55
Plugin Contributions:
0

Re: USPS First Class International - Adding a comment on check out

well according to the post - after adding that code its suppose to say
"No Tracking"
somewhere near
'First-Class Mail International Package'
and I was hoping to do that. Unless i'm not understanding this post...

I would like to offer First class mail option for international package but I would also like my international customers to be aware that there is no way to track first class package after it leaves the "warehouse"

17 Jul 2011, 5:23 PM
#12
ajeh avatar

ajeh

Oba-san

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

Re: USPS First Class International - Adding a comment on check out

Did you update the new code to use:

          $cost = preg_replace('/[^0-9.]/', '',  $cost);
          if ($type == 'First-Class Mail International Package**') {
            $title .= ' (No Tracking)';
          }

the $type has to match the current $type that is used in the code ...

17 Jul 2011, 5:57 PM
#13
littlekid440 avatar

littlekid440

New Zenner

Join Date:
Dec 2009
Posts:
55
Plugin Contributions:
0

Re: USPS First Class International - Adding a comment on check out

No It seems as if I might not have done that... :oops:

THANK YOU!
That has solved all of my problems regarding international shipping!

17 Jul 2011, 6:21 PM
#14
ajeh avatar

ajeh

Oba-san

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

Re: USPS First Class International - Adding a comment on check out

You are most welcome ... silly ol' code does what we say and not what we mean ... :lamo: