THANK YOU!
This appears to be an undocumented expected behavior...
From log files:
I think that what is needed is an addition to the documentation where it says, "Starting with v3.0.0, you can customize the text displayed to the customer for each of the defined postcode zones..." Maybe at the end of that paragraph it should add something to the effect of, "If you have added additional zones, you MUST add entries to this file for each zone added."Code:[07-Feb-2023 11:17:34 America/Los_Angeles] Request URI: /index.php?main_page=checkout_shipping, IP address: 63.153.103.46 #1 trigger_error() called at [/var/www/vhosts/artisticdesignsbybrenda.com/httpdocs/includes/modules/shipping/zipship.php:195] #2 zipship->getQuote() called at [/var/www/vhosts/artisticdesignsbybrenda.com/httpdocs/includes/modules/shipping/zipship.php:108] #3 zipship->quote() called at [/var/www/vhosts/artisticdesignsbybrenda.com/httpdocs/includes/classes/shipping.php:174] #4 shipping->quote() called at [/var/www/vhosts/artisticdesignsbybrenda.com/httpdocs/includes/modules/pages/checkout_shipping/header_php.php:184] #5 require(/var/www/vhosts/artisticdesignsbybrenda.com/httpdocs/includes/modules/pages/checkout_shipping/header_php.php) called at [/var/www/vhosts/artisticdesignsbybrenda.com/httpdocs/index.php:35] --> PHP Warning: Missing title (MODULE_SHIPPING_ZIPSHIP_TEXT_TITLE_4) or way (MODULE_SHIPPING_ZIPSHIP_TEXT_WAY_4) for the 'english' language; zipship is disabled. in /var/www/vhosts/artisticdesignsbybrenda.com/httpdocs/includes/modules/shipping/zipship.php on line 195.
Sorry, I forgot to include the fix.
In the /includes/languages/english/modules/shipping[/YOUR_TEMPLATE]/zipship.php file (and/or other languages, as appropriate for your site), you need to add entries for:
(where [x] is the number of the zone in the zipship configuration). This needs to be done for each zone added beyond the default three.Code:MODULE_SHIPPING_ZIPSHIP_TEXT_TITLE_[x] MODULE_SHIPPING_ZIPSHIP_TEXT_WAY_[x]
So if you have six zones, and have changedtoCode:$this->num_zones = 3;in /includes/modules/shipping/zipship.php, you will need to add entries:Code:$this->num_zones = 6;
You may want or need to change these from the default text.Code:define('MODULE_SHIPPING_ZIPSHIP_TEXT_TITLE_4', 'Zipcode Rate'); define('MODULE_SHIPPING_ZIPSHIP_TEXT_WAY_4', 'Deliver To Zipcode: '); define('MODULE_SHIPPING_ZIPSHIP_TEXT_TITLE_5', 'Zipcode Rate'); define('MODULE_SHIPPING_ZIPSHIP_TEXT_WAY_5', 'Deliver To Zipcode: '); define('MODULE_SHIPPING_ZIPSHIP_TEXT_TITLE_6', 'Zipcode Rate'); define('MODULE_SHIPPING_ZIPSHIP_TEXT_WAY_6', 'Deliver To Zipcode: ');
THANX for providing the fix.
I'm sure it will help others now and in the future.
A little help with colors.
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.
interesting.. I've used zipship for as long as I've used zencart and never had to do this.
However I do have this coding amendment in mine -
//$this->dest_zipcode = substr(strtoupper($order->delivery['postcode']), 0, (int)ENTRY_POSTCODE_MIN_LENGTH);
$this->dest_zipcode = strtoupper ($order->delivery['postcode']);
Dumb dumb me didn't comment why, but I wonder if it might be a simpler solution...
I don't think so.
That 'correction' appears to be reinstating an old issue where zip codes had to be entered exactly matching what's in the zipship configuration.
For example, if you used the zip code 59701 in one zone and the zip code 59711 in another zone, but the customer entered 59701-8208, the customer gets a notice that you are not shipping to that area. Adding the substring check fixes this for US ZIP codes where most people will only use the 5 digit, but some use the 9 digit ZIP+ code.
(So, the fix you commented out addresses a different issue that I encountered very shortly after installing this on a site years ago...)
ZC 1.5.7 with one page checkout and Bootstrap.
For the love of ..., I can't get it to work.
I set my zones as follow:
Zone 1 Zip Codes
94939
Zone 1 Shipping Table
9999:9.99
Zone 1 Handling Fee
0
Zone 2 Zip Codes
94901,94903,94904
Zone 2 Shipping Table
9999:12.99
Zone 2 Handling Fee
0
Zone 3 is blank
I am getting the "Sorry, we are not shipping to your region at this time." no matter which zip codes i try.
If i set zone 3 like this
Zone 3 Zip Codes
Zone 3 Shipping Table
999:14.99
Zone 3 Handling Fee
0
The shipping default to $14.99 no matter which zip i enter in the shipping address.
I am no getting any errors logs or anything.
What am I doing wrong? Any help on figuring this out would be appreciated?
Thank you
P.S: I noticed the zip code gets truncated in the shipping method box and shopping cart. (i.e: Deliver To Zipcode: 9493).
If i change the delivery address zip code on the checkout page from 94939 to 94903 , the Zip Code display in shipping method changes but the zip in the shopping cart box remains to 9493.
![]()
Last edited by nicksab; 18 Jan 2024 at 03:01 AM.