Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Change Shipping Estimator output text

Change Shipping Estimator output text

Locked

Views: 1,855

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
2 Jan 2010, 6:09 AM
#1
perkiekat avatar

perkiekat

Zen Follower

Join Date:
Aug 2009
Location:
Carmi, IL
Posts:
354
Plugin Contributions:
0

Change Shipping Estimator output text

Hello all,

Would anyone know where I can alter the language in the Shipping Estimator? Currently it says:

United States Postal Service (1 x 0.80lbs) (Priority Mail ( days))

I would like it to say:

USPS (insert weight here) PRIORITY MAIL

Remove the brackets entirely. I did remove the number of days, but do not know where to edit the rest.

Thanks

Pkat

Zen Cart user all the way for online stores!

2 Jan 2010, 1:25 PM
#2
perkiekat avatar

perkiekat

Zen Follower

Join Date:
Aug 2009
Location:
Carmi, IL
Posts:
354
Plugin Contributions:
0

Re: Change Shipping Estimator output text

Would anyone have a suggestion how I can do this?

Zen Cart user all the way for online stores!

2 Jan 2010, 3:21 PM
#3
perkiekat avatar

perkiekat

Zen Follower

Join Date:
Aug 2009
Location:
Carmi, IL
Posts:
354
Plugin Contributions:
0

Re: Change Shipping Estimator output text

Ok. I searched in the Developers Tool Kit and found the file to remove days...now I need to know where to remove the brackets...

Can anyone please help?? This is what I have now:

United States Postal Service (1 x 0.10lbs) (Priority Mail ( ))

Zen Cart user all the way for online stores!

2 Jan 2010, 4:22 PM
#4
perkiekat avatar

perkiekat

Zen Follower

Join Date:
Aug 2009
Location:
Carmi, IL
Posts:
354
Plugin Contributions:
0

Re: Change Shipping Estimator output text

Ok. After I turned the time off in the usps module in admin, I still had the parentheses, therefore, I edited the usps.php (saved a copy to my custom folder):

lines 511 & 566

if ($time != '') $transittime[$service] = '(' . $time . ')';

I changed the lines to this:

/* if ($time != '') $transittime[$service] = '(' . $time . ')';*/

This took out the time & brackets/parentheses. Works like a charm now.

Thanks

Zen Cart user all the way for online stores!

2 Jan 2010, 7:15 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: Change Shipping Estimator output text

On USPS you could instead of touching the code to turn off the days, simply edit the USPS module in the Zen Cart Admin under the Modules ... Shipping ... and turn the switch off:

USPS Options
Select from the following the USPS options.

Display weight
Display transit time

it would be a b it easier there ... :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!

2 Jan 2010, 7:49 PM
#6
perkiekat avatar

perkiekat

Zen Follower

Join Date:
Aug 2009
Location:
Carmi, IL
Posts:
354
Plugin Contributions:
0

Re: Change Shipping Estimator output text

Thanks for replying. I appreciate your response. For some reason or another, when I turned it off in admin the parentheses remained. When I changed the code, they went away. Looks lot's better without the pesky little curves! :smile:

All is good..for now...on to the next little mountain...:cool:

Zen Cart user all the way for online stores!