Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Franchise requirement problem.


splishman

Recommended Posts

Posted

I'm currently developing an OSC site for a franchise we are developing.

When users hit the site, at some point early in their visit, we need to ascertain which postcode they want the product/service delivered to.

So a dropdown box should suffice here...

If the postcode they want isn't in the list, we can't help them. "Sorry, blah, blah.."

If the postcode they want is in the list, they continue and the order will need to be emailed through to the franchise servicing this postcode.

 

I'm assuming some of the following:

(1) Once a delivery postcode has been chosen, this will be noted in their session (cookies) and the dropdown won't appear anymore for that session. I don't think we could just assume that the (logged in) customer will always deliver to the same postcode... thus, a customer's postcode details would be irrelevant for delivery.

(2) The postcode could get automatically populated in their full delivery details page. (Not critical, but would ensure some integrity of the user's choice.)

(3) The database would need to forward a copy of the order to the franchise responsible for this postcode.

 

I'm asking for thoughts on the most appropriate way to tackle this.

a deaf man cannot hear

a dumb man cannot listen

Posted

I think the easiest way would be to have the customer create an account...that would require a postcode to be entered. Then you could add a simple check in the account creation file (and also the address book file, the checkout payment address and checkout shipping address files) that would compare the postcode to a list of acceptable postcodes and return either a positive or negative response.

 

You could also write a small module that would say "locate a store near you!" which would prompt the customer for a postcode.

 

As for how to store that in the session...that's over my head. :)

Chris Dunning

osCommerce, Contributions Moderator Team

 

Please do not send me PM! I do not read or answer these often. Use the email button instead!

 

I do NOT support contributions other than my own. Emails asking for support on other people's contributions will be ignored. Ask in the forum or contact the contribution author directly.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...