Jump to content

Search the Community

Showing results for tags 'Priority Mail'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • CubeCart News & Announcements
    • News & Announcements
  • CubeCart Support Forums
    • Issue / Bug Reporting & Feature Requests
    • Install & Upgrade Support
    • Official CubeCart Hosting
    • Technical Help
    • Customising Look & Feel
  • CubeCart Extension Marketplace
    • Visit the CubeCart Extension Marketplace
    • Extension Discussion
    • Developer Forum
  • General
    • General Discussion
    • Show Off

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Location

Found 1 result

  1. I found that after upgrading from CubeCart 3 to 5.2.1 that we had a few severe issues with getting Priority Mail shipping rates since USPS changed some of their API. In a nutshell, my customer's site, a registered CubeCart user, has only two shipping product, and one fits nicely in a Priority Mail Small Flat Rate Box, making shipping easy and inexpensive. After the upgrade from 3 to 5.2.1 we noticed 2 things: 1. Customers in other countries couldn't make purchases 2. Once we figured out that we had to add each country to the USPS Shipping method, that they were not getting the lower rate for the Priority Mail Small Flat Rate boxes. I tracked this down and found that when using the international shipping in cubecart for Priority Mail, that it was only getting the Priority Mail Medium Flat Rate Box, although the items dimensions were small enough to fit in the Small, resulting as an example, shipping from Mid-US to Ontario Canada, the item was showing up as 40.95, when in the past we had paid less than $20. This seemed like an outrageous price hike even for USPS. So I dove into the code, and found that if I commented out the if stated around line 168 in shipping.class.php, that I could see all the prices including the one that my customer wants. I did some digging, and with the USPS' incomplete API spec, I found that it was a missing configuration item for a Service ID of 16. So I edited my Cubecart files and added the following to return this shipping option to the admin configuration and the results for shipping: modules/shipping/USPS/skin/admin/index.tpl line 192 I added in the comments section so I could see it for future ref: <!-- 1 - Express Mail International 2 - Priority Mail International 4 - Global Express Guaranteed (Document and Non-document) 5 - Global Express Guaranteed Document used 6 - Global Express Guaranteed Non-Document Rectangular shape 7 - Global Express Guaranteed Non-Document Non-Rectangular 8 - Priority Mail Flat Rate Envelope 9 - Priority Mail Flat Rate Box 10 - Express Mail International Flat Rate Envelope 11 - Priority Mail Large Flat Rate Box 12 - Global Express Guaranteed Envelope 13 - First Class Mail International Letters 14 - First Class Mail International Flats 15 - First Class Mail International Parcels 16 - Priority Mail Small Flat Rate Box 21 - PostCards --> then in the same file around line 294 added another entry for the admin tool: <div> <label style="width: 350px">{$LANG.usps.service_intl_priority_small}</label> <span> <input type="hidden" name="module[intl_class_id_16]" id="intl_class_id_16" class="toggle" value="{$MODULE.intl_class_id_16}" /> </span> </div> After this I edited modules/shipping/USPS/module.definitions.xml line 35 added a new ref so it would be parsed, etc: <string name="service_intl_priority_small"><![CDATA[Priority Mail International Small Flat Rate Box]]></string> Now the option shows up so it can be configured and international customers can select that type of shipping option. I found some others searching other sites, and used SoapUI for Mac to create some posts to get rates according to the USPS API and get back the return values and add them to the configuration. I hope this helps someone else and will be included in future releases. Thanks
×
×
  • Create New...