karlosman Posted September 30, 2017 Share Posted September 30, 2017 Please, give me an advice. How do I hide the country from my order? Thank you Link to comment Share on other sites More sharing options...
selectshop.at Posted September 30, 2017 Share Posted September 30, 2017 Use Geolocation feature for this. http://doc.prestashop.com/display/PS16/Geolocation+Preferences Link to comment Share on other sites More sharing options...
karlosman Posted September 30, 2017 Author Share Posted September 30, 2017 Thank you for your answer but I want to hide or remove the field. I attach a picture. Link to comment Share on other sites More sharing options...
selectshop.at Posted September 30, 2017 Share Posted September 30, 2017 OK. I cannot say if it will work with transport (shipping) than, but you can remove fields from form on back-office on tab: localization -> Countries -> choose the country you want and than use "edit". On next page you can custom the fields for your country. Link to comment Share on other sites More sharing options...
karlosman Posted October 1, 2017 Author Share Posted October 1, 2017 Unfortunately this is not possible and when I delete it in authentication.tpl it will write an error message. Thank you Link to comment Share on other sites More sharing options...
selectshop.at Posted October 1, 2017 Share Posted October 1, 2017 Yes, and that is the reason why I wrote: I don't think it will work. It is a must have field for to calculate shipping rates. So a major needed field with several dependencies. For to remove country on template files, you will need to rework Prestashop's architecture, this means: rework some controllers and dependency their files. Link to comment Share on other sites More sharing options...
Scully Posted October 2, 2017 Share Posted October 2, 2017 If you use only ONE country, you could make the field invisible by CSS rules and give the field the default content for your country. Deleting doesn't work since country is mandatory in terms of localization, shipping and more other functions. Link to comment Share on other sites More sharing options...
karlosman Posted October 4, 2017 Author Share Posted October 4, 2017 And can you please advise me where to hide the CSS? Thank you Link to comment Share on other sites More sharing options...
Scully Posted October 6, 2017 Share Posted October 6, 2017 We don't know your prestashop version. Alway helpful to mention this. For 1.6. You need to change address.css, address.tpl, addresses.tpl in your theme directory. I haven't investigate in detail but you can disable CCC cache for stylesheets and use your browser tools to figure out classes or IDs used. Maybe you needed an additional CSS class for the country field to be set in order not to hide all fields but only one. Link to comment Share on other sites More sharing options...
mgitech33 Posted October 10, 2017 Share Posted October 10, 2017 i have already hide this option in my shop it needs some code changes.. 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