cesarpenafiel Posted May 29, 2011 Share Posted May 29, 2011 I am having a lot of trouble removing the country from the order-opc-new-account.tpl. I have tried hiding the field, but that creates a "TECHNICAL ERROR: unable to save account" even when I set the default country or when I set the field as a text field and set the value to the ISO country code I want. I then started hardcoding anything that had $address->id_country with the country code I want in the AuthController.php and that almost fixes the problem, except I get a blank address shown in the next page (order-opc.php). I give up! Please help. I am using version 1.4.Thank you! Link to comment Share on other sites More sharing options...
shykoo Posted May 30, 2011 Share Posted May 30, 2011 I understand you have only your own country to ship to. a simple solution without hardcoding would be to disable all other countries. u can do this like so(UK being f.e the country you want to leave intact):go to phpMyadmin, click on the SQL tab, execute this line of code:UPDATE ps_country SET active=0 WHERE iso_code NOT LIKE 'UK' Link to comment Share on other sites More sharing options...
tomerg3 Posted May 30, 2011 Share Posted May 30, 2011 Did you try to add style="display:none" to the country drop down? Link to comment Share on other sites More sharing options...
cesarpenafiel Posted May 31, 2011 Author Share Posted May 31, 2011 I did try using UPDATE and it does work, however, I really want to remove even showing the city, state and country. I also just tried setting the style="display:none;" and it is the same effect as using: The error I get is TECHNICAL ERROR: Unable save account. If I then hard code the country in the AuthController.php file to bypass this error: if (!$country = new Country(MYCOUNTRYISOCODE, Configuration::get('PS_LANG_DEFAULT')) OR !Validate::isLoadedObject($country))I get passed that error but then on the next screen I get a blank address...Thanks for your help. If I can't find an answer to this, I will have to live with showing the fields with default values and having only one country enabled. I just find it puzzling that this is so hard to accomplish. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now