Can anyone help me I want to know where the file I need to change the lanuage for the USPS new rates classes. I want to put more info for the first class mail. Please someone!! I need to add the text to tell people it is airmail. It isn't in the normal place. Does anyone know????
HELP!![]()
I just wrote something similar for USPS for things to with tracking and without ...
It wasn't a lot of fun as this is one of the harder shipping modules to understand, but it can be done ...
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!
If you need to add the: no tracking
This has to be done in the shipping module itself ...
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!
But where exactly? This has been my question all along. If it was simply in the lanuage files I wouldn't be on this forum asking where to change it. Sorry for being a little katty but I am just so frustrated.
If you could help me out and let me know what area within the module I should be looking and what areas I can add text that will not stop it from working I would be extremly happy. Please help!!![]()
Do I correctly understand that you're *only* looking to change "(Varies)" to "(Varies - Airmail, no tracking)" ?
If so, you could try this hack:
/includes/modules/shipping/usps.php
around line 201 you have:Change that to:Code:$methods[] = array('id' => $type, 'title' => $title, 'cost' => ($cost + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);This approach will only work for all-English sites, and only does the one replacement of "(Varies)" with the indicated alternate content.Code:$methods[] = array('id' => $type, 'title' => str-replace('(Varies)', '(Varies - Airmail, no tracking)', $title), 'cost' => ($cost + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);
It does not consider which "method" it applies to... it only literally replaces text before displaying it.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
I suppose it would have been better for me to not make a typo:
Should have been an underscore instead of a hyphen:
str_replace
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Yesterday I experienced what would occur if you are still using the stg-production.shippingapis.com to access USPS data. Bottom line, I stopped getting USPS shipping results and got authorization errors instead. It was time to move from the staging servers to production servers (production.shippingapis.com) a long time ago. But I must have been in outer space.