Site Sections: Satchmo Main | Wiki | Demo Store |

Ticket #599 (closed defect: fixed)

Opened 2 months ago

Last modified 4 weeks ago

Initial country value during first step of checkout

Reported by: mengkuan Assigned to: chris
Priority: minor Milestone: 0.8
Component: Application Version:
Keywords: Cc:

Description

A newly registered user selects a product and proceeds to checkout. He has not updated his profile yet so the "Billing Information" and "Shipping Information" are just showing blank fields. The only required fields are "Email", "Last Name", "First Name" and "Phone Number". He fills in the "Phone Number" field and clicks on the "Continue Checkout" button. The following error is displayed:

invalid literal for int() with base 10: ''

The above error is because the country field is set to the first blank value "-----".

The best solution is to tell django it is ok to have an empty country value during the form submission process but I don't know enough about django to do that.

Instead, I have a workaround that uses shop.sales_country as the default value for the country field. Provided the user does not change the country field back to the first empty value, the checkout process can then proceed to the next step.

Attachments

contact_country.diff (0.9 kB) - added by mengkuan on 10/02/08 11:23:48.

Change History

10/02/08 11:23:48 changed by mengkuan

  • attachment contact_country.diff added.

10/26/08 18:20:20 changed by chris

  • status changed from new to closed.
  • resolution set to fixed.

With the recent refactoring, this should not be an issue any more.