Hi @lat9, thanks for your fast update again! I just updated my site to k11c and it worked great!
Hi @lat9, thanks for your fast update again! I just updated my site to k11c and it worked great!
Is the latest version of the USPS Shipping module compatible with Zencart V 1.5.5d? Our Priority Mail quit showing with the latest price increase from USPS.
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.
Hey guys,
After I updated the USPS module I started having problems with payment page.
I tried reversing what what done, meaning reinstalled the 2021 usps files but nothing changed.
Here is what I have at the checkout page.
MODULE_PAYMENT_PAYFLOW_TEXT_TITLE
MODULE_PAYMENT_PAYFLOW_TEXT_CREDIT_CARD_FIRSTNAME
MODULE_PAYMENT_PAYFLOW_TEXT_CREDIT_CARD_LASTNAME
MODULE_PAYMENT_PAYFLOW_TEXT_CREDIT_CARD_NUMBER
MODULE_PAYMENT_PAYFLOW_TEXT_CREDIT_CARD_EXPIRES
MODULE_PAYMENT_PAYFLOW_TEXT_CREDIT_CARD_CHECKNUMBER
MODULE_PAYMENT_PAYFLOW_TEXT_CREDIT_CARD_CHECKNUMBER_LOCATION
MODULE_PAYMENT_PAYPALWPP_TEXT_BUTTON_ALTTEXT MODULE_PAYMENT_PAYPALWPP_MARK_BUTTON_TXT
My cart version is v1.5.4
Any help will be very much appreciated.
Nevermind, re-installed the payment module folder and solved the issue.
I've just uploaded 2022-07-30 K11d for the Zen Cart moderators' review and will post back here when it's available for download.
This release contains the correction for GitHub issue #23 (CommitmentName coming back as an empty array).
Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=1292
I've just uploaded USPS version 2022-08-07 K11e, correcting the auto-update from 2022-07-12 K11c due to a misspelling (see GitHub issue #25).
Sorry about the churn!
2022-08-07 K11e
This morning, my site received several error messages from an Australian customer:
[11-Aug-2022 07:10:50 America/New_York] Request URI: /index.php?main_page=checkout_one, IP address: 121.213.160.xx
#1 usps->quote() called at [/includes/classes/shipping.php:174]
#2 shipping->quote() called at [/includes/modules/pages/checkout_one/header_php.php:222]
#3 require(/includes/modules/pages/checkout_one/header_php.php) called at [/home3/auberins/public_html/index.php:35]
--> PHP Warning: count(): Parameter must be an array or an object that implements Countable in /includes/modules/shipping/usps.php on line 555.
and
[11-Aug-2022 06:54:41 America/New_York] Request URI: /index.php?main_page=popup_shipping_estimator, IP address: 121.213.160.x
#1 usps->quote() called at [/includes/classes/shipping.php:174]
#2 shipping->quote() called at [/includes/modules/shipping_estimator.php:156]
#3 require(/includes/modules/shipping_estimator.php) called at [/includes/templates/template_default/popup_shipping_estimator/tpl_main_page.php:16]
#4 require(/includes/templates/template_default/popup_shipping_estimator/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: count(): Parameter must be an array or an object that implements Countable in /includes/modules/shipping/usps.php on line 555.
Line 555 is the following:
if ($this->is_us_shipment) {
$PackageSize = count($uspsQuote['Package']);
// if object has no legitimate children, turn it into a firstborn:
if (isset($uspsQuote['Package']['ZipDestination']) && !isset($uspsQuote['Package'][0]['Postage'])) {
$uspsQuote['Package'][] = $uspsQuote['Package'];
$PackageSize = 1;
}
} else {
$PackageSize = count($uspsQuote['Package']['Service']); //line 555
}
I remember this error and I found out a temporary solution as the following before. I thought this bug was fixed already so I removed this modification... Maybe @lat9 has a better way to improve.
Change
$PackageSize = count($uspsQuote['Package']['Service']); //line 555
To
if ($uspsQuote['Package']['Service']) {
$PackageSize = count($uspsQuote['Package']['Service']);
}
Bookmarks