Shipcalc Problems

blackburnandrew - September 1, 2006 - 18:31

I have everything working with e-commece. I have gotten a production account from USPS WebTools and changed the settings under shipcalc. After I did this I added the shipping options to the product content type. Everything seems to be ok until I go and check out to test the system and I get an error that says "Please enter a valid ZIP Code for the sender. (error -2147219498)
usps configuration error. Please notify the site administrator." I have added valid shipping info and I have also added a default fullfillment center. I do not know what to do past this point. Thanks to anyone that can help me out.

My fix

Bartee - September 22, 2006 - 18:12

The only way I can get it to work is to drop the +4 from the zip code on both the default fullfillment center and the destination address. I cannot get it to work with anything longer than the standard 5-digit zip code. I edited the address.module code to limit the zip code to 5 digits to avoid users typing more than the 5-digit code during an order.

  $form['zip'] = array(
    '#type' => 'textfield',
    '#title' => t('Zip / Postal Code'),
    '#default_value' => $edit['zip'],
    '#size' => 5,
    '#maxlength' => 5,
    '#description' => null,
    '#attributes' => null,
    '#required' => true,
  );

 
 

Drupal is a registered trademark of Dries Buytaert.