Smazáno Od Neznámé 9 srp 2020 14:25 I know this is an old subject, but if you please tell me how to change default Country, It must be Serbia but browser checker always set it u the US because people use mainly the browser in English?
tim Founder Od Sweden Členem od kvě 2013 tim 9 srp 2020 14:45 Thanks for reminding me this has to be patched. See if the following MySQL queries fixes your problem. UPDATE `lc_settings` SET `function` = 'zone("store_country_code")' WHERE `key` = 'store_zone_code'; UPDATE `lc_settings` SET `function` = 'zone("store_country_code")' WHERE `key` = 'default_zone_code'; Also, try this add-on https://www.litecart.net/en/addons/296/ip2c-ip-to-country
vilaiporn LiteCart Fan Od Thailand Členem od srp 2017 vilaiporn 21 led 2021 02:48 Hello, I see that in 2.2.5 is still not patched. The add-on did not work. I usually in litecart\includes\templates\default.catalog\views\box_checkout_customer.inc.php replace: <div class="form-group col-sm-6"> <label><?php echo language::translate('title_country', 'Country'); ?></label> <?php echo functions::form_draw_countries_list('country_code', true); ?> </div>``` with: ```<div class="row"> <div class="form-group col-md-6"> <label><?php echo language::translate('title_country', 'Country'); ?></label> <?php echo functions::form_draw_countries_list('country_code', false, 'required="required"'); ?> </div>``` But in the demo (http://demo.litecart.net/) works fine. Which solution apply to the demo?
tim Founder Od Sweden Členem od kvě 2013 tim 21 led 2021 16:05 @milos You could change the order for how country is determined: https://github.com/litecart/litecart/blob/dev/public_html/includes/library/lib_customer.inc.php#L86-L144
tim Founder Od Sweden Členem od kvě 2013 tim 21 led 2021 16:11 @vilaiporn The demo uses 2.2.7 as of today's date. That could be why.