I'm using the USPS Module that's included with OpenCart and I've upgraded to Patch v4, if my cart weight is above 13oz and below 16oz I get no shipping options at all? I would like to have Priority Available from 0-16oz but it doesn't show under 16oz just 16oz or above and first class stops showing at 13 like it's supposed to.
Ideas?
Thanks,
Eric
Ok, so i have to convert all my weights to pounds? It's giving the right postage amount. And now it is working above 13oz but at exact 13 it gives no options and under 13 it doesn't give priority as an option.
Kind of a half baked way to do what I need to. I setup First Class through Weight Base Shipping so I could add in a base rate and then commented out the code that checks the weight between 0 and 13oz.
Found:
and commented all except this.
This gets me priority from 0oz and up.
Found:
Code: Select all
if ($pounds == 0 && $ounces <= 13 && $this->config->get('usps_firstclass_type')) {
$xml .= ' <Service>FIRST CLASS</Service>';
$xml .= ' <FirstClassMailType>' . $this->config->get('usps_firstclass_type') . '</FirstClassMailType>';
} else {
$xml .= ' <Service>ALL</Service>';
}
Code: Select all
$xml .= ' <Service>ALL</Service>';
No you dont convert your product weights to pounds. Products can be any weight class you want. Just be sure to set "pounds" in the usps configuration where it says "Set to Pounds or Ounces". I was adding ounces as an option but the calculation only works with pounds so it should only be poundsZeroContent wrote:Ok, so i have to convert all my weights to pounds? It's giving the right postage amount. And now it is working above 13oz but at exact 13 it gives no options and under 13 it doesn't give priority as an option.
Why do you insist on reinventing the wheel rather than just using the option in the admin where it clearly says:ZeroContent wrote:Kind of a half baked way to do what I need to. I setup First Class through Weight Base Shipping so I could add in a base rate and then commented out the code that checks the weight between 0 and 13oz.
Found:and commented all except this.Code: Select all
if ($pounds == 0 && $ounces <= 13 && $this->config->get('usps_firstclass_type')) { $xml .= ' <Service>FIRST CLASS</Service>'; $xml .= ' <FirstClassMailType>' . $this->config->get('usps_firstclass_type') . '</FirstClassMailType>'; } else { $xml .= ' <Service>ALL</Service>'; }
This gets me priority from 0oz and up.Code: Select all
$xml .= ' <Service>ALL</Service>';
Domestic First Class type: "Disabled" that does the exact same thing, hence the reason I added it.
Who is online
Users browsing this forum: No registered users and 32 guests