Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

V4.4.5: Help needed to fix the "Is not a valid state for specified shipment" error

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-18-2012, 12:48 PM
 
Thomasb134 Thomasb134 is offline
 

X-Adept
  
Join Date: Apr 2007
Location: USA
Posts: 789
 

Default V4.4.5: Help needed to fix the "Is not a valid state for specified shipment" error

Last week we upgraded to V4.4.5. Our international customers are complaining about problems during checkout. They enter their state (province) names that have more than two characters. Unfortunately, this causes UPS's realtime shipping rate service to report this error:
<state name> is not a valid state for the specified shipment. (errorcode: 111286).

UPS only accepts a 2-character state field. The irony is that the state field is not even used by UPS to determine international shipping rates.

I thought it would be an easy fix. Just edit the php code that is responsible for sending the information to UPS. It should be changed so that it truncates the state field to 2 characters (or perhaps remove the state name entirely if the shipment is international).

But I need some help -- I can't figure out which modules does this. I've been poking around in webmaster mode and just can't find the magic place that I need to edit.
__________________
Thomas / USA
XCart V4.4.5 Gold
XCart Mobile V1.4.12
XCart X-PDF
XCart X-HotProducts
AlteredCart Checkout One (One Page Checkout)
BCSE Back In Stock
CFL Holiday Message
CFL System Message
Smack Digital (WebsiteCM) Remember Anon Carts
xcartmods Testimonials
xcartmods reCAPTCHA for X-Cart Classic
Unix, PHP 7.0 (patched 5.4).
MySQL 5.6
Reply With Quote
  #2  
Old 04-18-2012, 03:12 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: V4.4.5: Help needed to fix the "Is not a valid state for specified shipment" error

You cannot find the file with webmaster mode - it is a php file and webmaster mode will not show it to you. YOu need to modify "shipping/mod_UPS.php"
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
Thomasb134 (04-18-2012)
  #3  
Old 04-18-2012, 06:55 PM
 
Thomasb134 Thomasb134 is offline
 

X-Adept
  
Join Date: Apr 2007
Location: USA
Posts: 789
 

Default Re: V4.4.5: Help needed to fix the "Is not a valid state for specified shipment" error

Thanks, that's just what I needed.
__________________
Thomas / USA
XCart V4.4.5 Gold
XCart Mobile V1.4.12
XCart X-PDF
XCart X-HotProducts
AlteredCart Checkout One (One Page Checkout)
BCSE Back In Stock
CFL Holiday Message
CFL System Message
Smack Digital (WebsiteCM) Remember Anon Carts
xcartmods Testimonials
xcartmods reCAPTCHA for X-Cart Classic
Unix, PHP 7.0 (patched 5.4).
MySQL 5.6
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:34 AM.

   

 
X-Cart forums © 2001-2020