opencart2.x - Change default country in OpenCart -


i'm using latest version of opencart 2.0.2.0 whenever go register page site/index.php?route=account/register shows united states default. know how change default country default country. here need is, if user go register page show please select instead of default country.

it not option available. but, can modified following code.

find code: catalog\controller\account\register.php

if (isset($this->request->post['country_id'])) {             $data['country_id'] = $this->request->post['country_id'];         } elseif (isset($this->session->data['shipping_address']['country_id'])) {             $data['country_id'] = $this->session->data['shipping_address']['country_id'];         } else {             $data['country_id'] = $this->config->get('config_country_id');         } 

remove following code above code.

else {             $data['country_id'] = $this->config->get('config_country_id');         } 

Comments

Popular posts from this blog

java - Null response to php query in android, even though php works properly -

node.js - Using Node without global install -

php - CakePHP HttpSockets send array of paramms -