Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Country Specific create account questions


Guest

Recommended Posts

I need the ability to add a field to the create account page, to grab a VAT number. However I only need to do this if the customer selects a country which is not UK.

 

I can add the extra field, but i dont know how to make it show depending on what the customer selects as his country ID.

 

Any pointers?

 

thnx

Link to comment
Share on other sites

Rather than showing it or not (which would require refreshing the page depending on the selected country), I would recommend always showing it, and adding a note to say it is required only for non-uk countries, and then validate that it has been entered if the country is non-uk only when the form is submitted.

Link to comment
Share on other sites

Well the page automatically loads onto UK as the country selected. If the user changes country, then the page already refreshes because it loads the selected zones for that country in a drop down too.

 

But your idea may still be easier, I suppose its just adding a piece of javascript to check the field, any pointers in this direction? I dont know much javascript at all. Mainly a php newb.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...