July 20, 2009

Obscure issue with ASPDotNetStorefront and Google Checkout?

Filed under: Tips — Tags: , , — Webopius @ 11:01 am

ASPDotNetStorefront (ASPDNSF) is a very robust, reliable ecommerce platform but like any complex software product, it will sometimes experience issues. Today, we resolved what has to be one of the more obscure issues related to integration with Google Checkout.

Input String Was Not in a Correct Format

On the client’s site, whenever a customer had products in their shopping cart and clicked the Google Checkout button they would be presented with an error screen proclaiming the ‘Input String Was Not in a Correct Format’.

Normally, this error is caused if Free shipping is turned on and the AppConfig value ‘ShippingMethodIDIfFreeShippingIsOn’ is left empty. See the ASPDotNetStorefront knowledgebase issue here for further details.

In this case, this wasn’t the problem at all.

| character in ASPDotNetStorefront shipping method descriptions

Within the ASPDotNetStorefront Google checkout gateway integration, ASPDNSF does some processing with Shipping method descriptions. It uses the | character as a delimiter.

Our client had recently changed the Shipping Method descriptions to something like this ‘First Class | Not tracked’. Notice the | character?

This caused the ASPDNSF Google Checkout gateway code a problem because it was unable to split the descriptions correctly and find values for Shipping Method IDs – hence the input format error.

The fix was simple: Change the | in the shipping method descriptions to another character. Finding the issue however took a while!

Other ASPDotNetStorefront articles:

Integrating ASPDotNetStorefront (ASPDNSF) with Royal Mail warehousing
Fix for ASPDotNetStorefront – Order Total still contains shipping costs with Free shipping
Integrating Webgains affiliate network with ASPDotNetStorefront

ASPDotNetStorefront Development and Support services:

If you would like assistance implementing or enhancing an ASPDotNetStorefront installation, please click here for more information about our ASPDotNetStorefront development and support services.

  • Tags