Re: USPS Shipping Module - RateV4, IntlRateV2 - Support Thread
I have the latest module installed and it works so much better! I want to offer flat rate priority mail service, but for every cart it offers small, medium and large boxes and I'm sure my customers will choose the cheaper option. Is there a way to control which option is presented to the customers by some attribute?
Re: USPS Shipping Module - RateV4, IntlRateV2 - Support Thread
Quote:
Originally Posted by
kwrosenzweig
For every cart it offers small, medium and large boxes and I'm sure my customers will choose the cheaper option. Is there a way to control which option is presented to the customers by some attribute?
With the current module functionality - no.
The moment one of the dimensions goes over 12" it will disable all the flat-rate or "regular" size options.
I will post an update this weekend which fixes:
The minor bug mentioned in the previous post.
Speed improvement going from checkout_shipping --> checkout_payment page.
Adding USPS specified dimensions to the flat rat boxes so the dimension config can be used to filter them by weight.
I haven't looked into the USPS envelope sizing limits/exceptions for various services. If USPS put all this info in one convenient spot I would really appreciate it. It seems like it's all over the place!
I might add an option that allows people to enable or disable size-limit checking for envelopes and packages so the functionality doesn't get in the way.
1 Attachment(s)
Re: USPS Shipping Module - RateV4, IntlRateV2 - Support Thread
Just a quick update.
Weight filtering is going and someone is helping me test that feature.
I also implemented quote caching to speed stop the same quote from being retrieved more than once in a customers session. This should speed up going from 'checkout_shipping' to 'checkout_payment'.
I decided to hold off from releasing to get another option going.
Filtering shipping quotes by volume. (see attached)
To use this feature there is a small patch to apply to the shop database. It's harmless and doesn't change your data. It only converts the products_weight field to "double" precision and keeps all existing data. It allows me to store the volume in the additional digits.
I just thought of this - but if you use product attributes my volume handling code will work for that too, since an attribute can add extra weight to a product it can also add the extra volume simultaneously!
The beauty of this approach: I don't need to edit any core files or change the product admin section to implement it.
Here is the SQL Query you will need to run:
Code:
ALTER TABLE products CHANGE products_weight products_weight DOUBLE NOT NULL DEFAULT '0';
UPDATE products SET products_weight=ROUND(`products_weight`,5);
ALTER TABLE products_attributes CHANGE products_attributes_weight products_attributes_weight` DOUBLE NOT NULL DEFAULT '0';
UPDATE products_attributes SET products_attributes_weight=ROUND(`products_attributes_weight`,5);
Re: USPS Shipping Module - RateV4, IntlRateV2 - Support Thread
I am using this module and finally got it to work. Not because of the plugin but stupid USPS took forever to activate my web tools ID.
Now it works I would need to do the following:
I have stuff to ship that needs to be delivered next day.
Therefore I want only rates to show up that makes next day delivery
possible.
How can I narrow down to show only the "1 day" options?
I have to consider also 1 day might be available for one customer but not for another depending where the destination area is.
Thanks for any help
Re: USPS Shipping Module - RateV4, IntlRateV2 - Support Thread
This module can't filter by transit time. You will have to check with usps to find out what areas around your location are covered by 1 day delivery guarantee.
I'm leaning on the side of using another module at the moment, perhaps something like http://www.zen-cart.com/forum/showthread.php?t=63608
Find out if it can disable shipping if it doesn't recognize a zip code and bring up a note saying shipping isn't supported for that region.
I might add filtering by state or zip code ranges to my module at some point. Maybe after I've tested and gotten the product volume/quote filtering system going.
Re: USPS Shipping Module - RateV4, IntlRateV2 - Support Thread
If you really want to use the usps module for this you can modify the module.
Find the following code around line 410.
PHP Code:
for ($i=0; $i<$size; $i++) {
list($type, $cost) = each($uspsQuote[$i]);
and add the following underneath so it looks like this:
PHP Code:
for ($i=0; $i<$size; $i++) {
list($type, $cost) = each($uspsQuote[$i]);
if (!strstr($transittime[$type],'Tomorrow')) {
if (($i+1)==$size && empty($methods)) {
$this->quotes = array(
'module' => $this->title,
'error' => 'Sorry, Overnight Shipping is not available to your location.');
}
continue;
}
And that should do what you need, though it relies on the 'Display Transit times' option to be ticked in the module config.
And if that works for you buy me a couple drinks!
Re: USPS Shipping Module - RateV4, IntlRateV2 - Support Thread
Thank you for the quick reply.
Understand the logic behind your suggestions and guess it will work this way.
Just have the issue I can't find the code you mentioned above.
I am using the latest update from the plugin and not the one that was posted here in the beginning of the thread. I looked at the PHP file and the version = version $Id: usps.php 65043 2011-26-05.
It seems the coding is a little different.
Could you please point me where I should put your suggested coding?
Thanks again
Michael
Re: USPS Shipping Module - RateV4, IntlRateV2 - Support Thread
Hi Michael,
The new code starts at line 384 in that file version.
Though you could have used the search function in the text editor for that! Thats why I said 'around line 410.'
Since I was working with my current development copy.
Marco
Theres a decent text editor you can use. For windows I recommend Notepad++
Re: USPS Shipping Module - RateV4, IntlRateV2 - Support Thread
Hello everyone,
Using Zen Cart 1.39h and the May 26 version of this module.
We had problems from the beginning. First, I was told I could not connect to the the testing server.
When I registered with USPS, the confirmation email told me to use a different dll for the testing server (shippingAPITest.dll instead of shippingAPI.dll), so I changed the dll name on line 682 and we started connecting.
Now, I'm getting "RateV4 is not a valid API name for this protocol" errors.
For reference, I started with the January 2011 version of this module and received the exact same error with RateV3.
Any suggestions?
Beth
Re: USPS Shipping Module - RateV4, IntlRateV2 - Support Thread
After a lot of head banging, USPS moved me to the production server, which solved the invalid API problem.