Request: Shipping estimate before registration (zip code)
neilquinn opened this issue · 3 comments
Request:
It would be great to add support for a real-time shipping quote without having to fill out all of the user profile information.
Ideally, the flow would look like this:
- On first checkout screen, a text field with "Enter your zipcode to estimate shipping"
- After entering, they immediately see the cheapest option
- When they go to register, that zip code would be pre-populated.
That's a great idea, @neilquinn. Care to take a first stab at a PR for this?
Here's a rough PR:
- On initial checkout screen under shipping line, follow this logic:
1a. IF shipping is free, or a flat rate, just show the shipping amount here (maybe skip this if we always want them to be able to estimate taxes up front though)
1b. IF shipping cost depends on the region, provide a select drop down for shipping country.
1c. Use jquery/javascript to display a select dropdown for state if country =USA, province if other (or whatever standard address logic is for selecting a sub-region depending on the country)
1d. Provide text input area for zip code
1e. Either provide an "estimate shipping and tax" submit button, or make the focus such that when a user presses enter after entering the zip code the values will update
1f. Update line items to include tax if applicable, subtotal with tax, and a shipping estimate
- On next checkout page that prompts for full user information:
2a) Shipping address should use the provided country, state/province, and zip code that was filled in before.
I've attached a rough screen shot of where the placement could go, but I would let a designer/UX person clean this up to make it look nice.
@neilquinn your mockups look great, and I know many people have requested this.
Forgive me if I'm stating the obvious, but I wanted to offer a clarification: when @mtuckergd asked for a PR, he meant a "Pull Request". In other words, he was asking you to make a first draft of the code changes required. Then we could work on them as a community and get this thing built.