I am facing another issue.
Module works as intended but i am getting these warning log:
Any suggestions on this please?Code:[19-Jan-2024 11:05:34 America/Los_Angeles] Request URI: /index.php?main_page=shopping_cart, IP address: 107.119.57.1 #1 trigger_error() called at [/includes/modules/shipping/zipship.php:186] #2 zipship->getQuote() called at [/includes/modules/shipping/zipship.php:108] #3 zipship->quote() called at [/includes/classes/shipping.php:174] #4 shipping->quote() called at [/includes/modules/bootstrap/shipping_estimator.php:159] #5 require(/includes/modules/bootstrap/shipping_estimator.php) called at [/includes/templates/bootstrap/modalboxes/tpl_shipping_estimator.php:19] #6 require(/includes/templates/bootstrap/modalboxes/tpl_shipping_estimator.php) called at [/includes/templates/bootstrap/templates/tpl_shopping_cart_default.php:178] #7 require(/includes/templates/bootstrap/templates/tpl_shopping_cart_default.php) called at [/includes/templates/bootstrap/common/tpl_main_page.php:213] #8 require(/includes/templates/bootstrap/common/tpl_main_page.php) called at [/index.php:95] --> PHP Warning: Missing cost (MODULE_SHIPPING_ZIPSHIP_COST_) or handling (MODULE_SHIPPING_ZIPSHIP_HANDLING_) settings; zipship is disabled. in /includes/modules/shipping/zipship.php on line 186. [19-Jan-2024 11:05:34 America/Los_Angeles] Request URI: /index.php?main_page=shopping_cart, IP address: 107.119.57.1 #1 require(/includes/templates/bootstrap/templates/tpl_modules_shipping_estimator.php) called at [/includes/modules/bootstrap/shipping_estimator.php:300] #2 require(/includes/modules/bootstrap/shipping_estimator.php) called at [/includes/templates/bootstrap/modalboxes/tpl_shipping_estimator.php:19] #3 require(/includes/templates/bootstrap/modalboxes/tpl_shipping_estimator.php) called at [/includes/templates/bootstrap/templates/tpl_shopping_cart_default.php:178] #4 require(/includes/templates/bootstrap/templates/tpl_shopping_cart_default.php) called at [/includes/templates/bootstrap/common/tpl_main_page.php:213] #5 require(/includes/templates/bootstrap/common/tpl_main_page.php) called at [/index.php:95] --> PHP Warning: count(): Parameter must be an array or an object that implements Countable in /includes/templates/bootstrap/templates/tpl_modules_shipping_estimator.php on line 113.
Did you modify the shipping-module's number of zones (defaults to 3)?
Have you provided a default/fall-back entry if the order's zip-code matches none of the other configured groups?
No I am only using 3 zones with the following setting:
Zipcode-Based Rate
Enable Zip Code Method
True
Calculation Method
Item
Tax Class
Taxable Goods
Shipping Zone
--none--
Sort Order
0
Zone 1 Zip Codes
94939,94925,94904,94957
Zone 1 Shipping Table
5:11.99,99:14.99
Zone 1 Handling Fee
0
Zone 2 Zip Codes
94920,94941,94942,94901,94903
Zone 2 Shipping Table
5:14.99, 99:19.99
Zone 2 Handling Fee
0
Zone 3 Zip Codes
94965,94960
Zone 3 Shipping Table
5:19.99,99:24.99
Zone 3 Handling Fee
0No and honestly not sure how to do that. Meaning we don t serve any other zip except for the one provided above.Have you provided a default/fall-back entry if the order's zip-code matches none of the other configured groups?
If the delivery address zip code is not served, i have the "Not available at this time" and checkout cannot be completed. I am assuming that s what is creating the log.
it is working as intended so far except for the logs. I saw "00000" mention for all zip codes but that won t work since we only ship to a limited amount of zip code.
So if I understand correctly, these logs are generated because if the billing/shipping address zip entered does not match the one i specified and the message appears.
hypothetically, if we don t serve zip code: 11111, the error logs gets generated and the " not available at this time" get displayed.
So that could be confusing to customer.
How can i do this instead: If the zip is outside of our serving area, a message is displayed asking customer to check shipping address in order to continue??
the best would be to have the shipping address separate from the billing address instead of being "auto fill". (if that makes sense)
I look into this option at some point but was never able to figure it out.
FWIW, I'm working on an update tested on zc158/zc200 that should correct those issues and updates to support PHP 8.
ZipShip v3.1.0 is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=312
This release contains changes associated with these GitHub issues:
#12: Major update for zc158/zc200 and PHP versions >= 8.2
#13: Use matching zipcode values instead of string comparisons
#14: Correct PHP Warning: strpos empty needle
Read the full readme.html here: https://htmlpreview.github.io/?https...ip/readme.html
Bookmarks