Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Remove country as required field


Recommended Posts

My site only sells to US, how can I remove the country requirement all together for user regsistration? It's easy enough to comment out those items on the create_account.php page but what other changes do I need to make to eliminate the error message about country being a required field?



Link to comment
Share on other sites

delete all countries except USA




In includes/functions/html_output.php at about line 299 find:


$countries_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT));


Replace (for the United States) with...


$countries_array = array(array('id' => '223', 'text' => 'United States'));


should fix your problem


backup any files you change beforehand

Link to comment
Share on other sites


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

  • Create New...