Page 16 of 17 FirstFirst ... 614151617 LastLast
Results 151 to 160 of 168
  1. #151
    Join Date
    Apr 2007
    Location
    California, USA
    Posts
    233
    Plugin Contributions
    0

    red flag Re: USPS new rates May

    Quote Originally Posted by Kim View Post
    It says varies because the time can vary widely depending on the destination. My suggestion would be to stop offering the First Class by unchecking the box in the USPS module settings in the Admin.
    We thought of that, but I was hoping I could jsut add so text to let people know that is it just airmail and has no tracking. Any suggestions on where the lanuage comes from?

  2. #152
    Join Date
    Apr 2007
    Location
    California, USA
    Posts
    233
    Plugin Contributions
    0

    red flag Re: USPS new rates May

    Quote Originally Posted by supersnow View Post
    We thought of that, but I was hoping I could jsut add so text to let people know that is it just airmail and has no tracking. Any suggestions on where the lanuage comes from?
    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!

  3. #153
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: USPS new rates May

    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!

  4. #154
    Join Date
    Apr 2007
    Location
    California, USA
    Posts
    233
    Plugin Contributions
    0

    Default Re: USPS new rates May

    Quote Originally Posted by Ajeh View Post
    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,

    Are you replying to my request for help with the language changes I need? If so where would I find this information that you have written?

  5. #155
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: USPS new rates May

    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!

  6. #156
    Join Date
    Apr 2007
    Location
    California, USA
    Posts
    233
    Plugin Contributions
    0

    red flag Re: USPS new rates May - adding text

    Quote Originally Posted by Ajeh View Post
    If you need to add the: no tracking

    This has to be done in the shipping module itself ...
    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!!

  7. #157
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: USPS new rates May

    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:
    Code:
              $methods[] = array('id' => $type,
                                 'title' => $title,
                                 'cost' => ($cost + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);
    Change that to:
    Code:
              $methods[] = array('id' => $type,
                                 'title' => str-replace('(Varies)', '(Varies - Airmail, no tracking)', $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.
    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.

  8. #158
    Join Date
    Apr 2007
    Location
    California, USA
    Posts
    233
    Plugin Contributions
    0

    red flag Re: USPS new rates May

    Quote Originally Posted by DrByte View Post
    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:
    Code:
              $methods[] = array('id' => $type,
                                 'title' => $title,
                                 'cost' => ($cost + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);
    Change that to:
    Code:
              $methods[] = array('id' => $type,
                                 'title' => str-replace('(Varies)', '(Varies - Airmail, no tracking)', $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.
    It does not consider which "method" it applies to... it only literally replaces text before displaying it.
    I was so excited about the fix and I but it on my site and I got this:
    Code:
    Fatal error: Call to undefined function: replace() in /home/kravshop/public_html/includes/modules/shipping/usps.php on line 202
    So is there somewher else in the module I can change this?

  9. #159
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: USPS new rates May

    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.

  10. #160
    Join Date
    Jan 2005
    Location
    Tennessee
    Posts
    1,128
    Plugin Contributions
    0

    Default Re: USPS new rates May

    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.

 

 
Page 16 of 17 FirstFirst ... 614151617 LastLast

Similar Threads

  1. USPS RateV4 Intl RateV2 - May 31, 2015 Version K7 for May 31, 2015
    By Ajeh in forum Zen Cart Release Announcements
    Replies: 0
    Last Post: 31 May 2015, 12:20 AM
  2. v138a Cannot update to new USPS v4 rates
    By DesDev5 in forum Addon Shipping Modules
    Replies: 20
    Last Post: 21 Aug 2013, 03:51 PM
  3. USPS New May 14th Shipping Module
    By Ajeh in forum Zen Cart Release Announcements
    Replies: 2
    Last Post: 15 May 2007, 12:25 AM
  4. New USPS shipping changes in May
    By OregonBum in forum Addon Shipping Modules
    Replies: 0
    Last Post: 26 Mar 2007, 04:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg