Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Jan 2010
    Posts
    182
    Plugin Contributions
    0

    Default 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?

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

    Default 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: v1.5.5]
    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. #3
    Join Date
    Jan 2010
    Posts
    182
    Plugin Contributions
    0

    Default 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.

  4. #4
    Join Date
    Jan 2010
    Posts
    182
    Plugin Contributions
    0

    Default 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 = abandoned cart.

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

    Default Re: change usps wording - international

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

    and add the line in RED:
    Code:
    // 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: v1.5.5]
    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. #6
    Join Date
    Jan 2010
    Posts
    182
    Plugin Contributions
    0

    Default 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

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

    Default 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: v1.5.5]
    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!

  8. #8
    Join Date
    Jan 2010
    Posts
    182
    Plugin Contributions
    0

    Default 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)

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

    Default Re: change usps wording - international

    Change the code around line 299 to read with the code in RED:
    Code:
    // 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: v1.5.5]
    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!

  10. #10
    Join Date
    Jan 2010
    Posts
    182
    Plugin Contributions
    0

    Default 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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 I cannot change the USPS shipping wording
    By bangsters in forum General Questions
    Replies: 1
    Last Post: 16 Mar 2012, 04:37 PM
  2. Change some wording....
    By jewelrylady in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 24 Feb 2007, 12:11 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR