hi all!
I'm installing a scratch install of 3.0.3.1 as an upgrade to my 1.5.6 install because my hosting provider is going to shut off PHP 5.6 completely in a week. So I'm forced to re-install my opencart and I figure I'd go with the latest version.
the biggest issue I ahve right now is that I've installed and configured my USPS shipping extention, however, that shipping option will not display... only the "flat rate" option I had as a test will show up, but USPS never shows up.
I remember a couple years back I had to modify my USPS extension in 1.5.6, but I hope that I wouldn't ahve to do that in the new version of opencart...
any help would be greatly appreaciated!
thanks!
Mike B
I'm installing a scratch install of 3.0.3.1 as an upgrade to my 1.5.6 install because my hosting provider is going to shut off PHP 5.6 completely in a week. So I'm forced to re-install my opencart and I figure I'd go with the latest version.
the biggest issue I ahve right now is that I've installed and configured my USPS shipping extention, however, that shipping option will not display... only the "flat rate" option I had as a test will show up, but USPS never shows up.
I remember a couple years back I had to modify my USPS extension in 1.5.6, but I hope that I wouldn't ahve to do that in the new version of opencart...
any help would be greatly appreaciated!
thanks!
Mike B
One of the ways to troubleshoot this issue would be in your catalog/model/extension/shipping/usps.php file.
Find:
replace with:
Test another checkout transaction. Then, visit your OC admin error logs noticing the status text.
Find:
Code: Select all
if (!$this->config->get('shipping_usps_geo_zone_id')) {
$status = true;
} elseif ($query->num_rows) {
$status = true;
} else {
$status = false;
}
$weight = $this->weight->convert($this->cart->getWeight(), $this->config->get('config_weight_class_id'), $this->config->get('shipping_usps_weight_class_id'));
// 70 pound limit
if ($weight > 70) {
$status = false;
}
Code: Select all
$status_text = '';
if (!$this->config->get('shipping_usps_geo_zone_id')) {
$status_text = 'shipping_usps_geo_zone_id has not been configured!';
$status = true;
} elseif ($query->num_rows) {
$status_text = 'database rows have been found for USPS zones!';
$status = true;
} else {
$status_text = 'USPS settings do not match!';
$status = false;
}
$weight = $this->weight->convert($this->cart->getWeight(), $this->config->get('config_weight_class_id'), $this->config->get('shipping_usps_weight_class_id'));
// 70 pound limit
if ($weight > 70) {
$status_text = 'Weight is over 70 pounds and currently at: ' . (int)$weight);
$status = false;
}
$this->log->write($status_text);
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I resolved the issue... it was the same issue I had a few years back as well... found the fix in my notes from back then
I replaced "First-Class Mail Parcel" with "First-Class Package Service - Retail" (as written in the XML
Here is the array text from catalog/model/extension/shipping/usps.php
$firstclasses = array (
'First-Class Package Service - Retail',
'First-Class Mail Large Envelope',
'First-Class Mail Stamped Letter',
'First-Class Mail Postcards'
);
in both these files:
catalog/model/extension/shipping/usps.php,
catalog/model/shipping/usps.php
works like a champ now!
Mike B
I replaced "First-Class Mail Parcel" with "First-Class Package Service - Retail" (as written in the XML
Here is the array text from catalog/model/extension/shipping/usps.php
$firstclasses = array (
'First-Class Package Service - Retail',
'First-Class Mail Large Envelope',
'First-Class Mail Stamped Letter',
'First-Class Mail Postcards'
);
in both these files:
catalog/model/extension/shipping/usps.php,
catalog/model/shipping/usps.php
works like a champ now!
Mike B
Already fixed on GitHub.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
See the catalog/model/extension/shipping/usps.php file by looking for: - Retail on GitHub Opencart. You will see it in the array already as you described above.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: No registered users and 163 guests