Author Topic: How to set up default country for user at /CustomerRegistration.do page?  (Read 657 times)

ady1981

  • Jr. Member
  • **
  • Posts: 35
    • View Profile
Hello,

Our customers are generally from Russia. Is it possible to (pre) set up default country for user registration at /CustomerRegistration.do page (i.e. pre-select "Country:" -> "Russian Federation")?


Regards,

-Andrey

trevor

  • Administrator
  • Hero Member
  • *****
  • Posts: 495
    • View Profile
    • KonaKart
This can be easily achieved by editing RegisterCustomerBody.jsp to select the Russian Federation in the drop list.

ady1981

  • Jr. Member
  • **
  • Posts: 35
    • View Profile
Many thanks.

I changed <html:select name="RegisterCustomerForm" property="countryId" value="176"> in corresponding place.

But, there is another way for checkout: through the CheckoutDelivery.do action (OnePageCheckoutBody.jsp).

I looked at the code and it was not obviously for me how to set the pre-selected country there (as could I see GWT begin to play there).

-Andrey