Page 2 of 2
Re: [1.5]Hide/remove/defult predefined Region/State
Posted: Wed Apr 04, 2012 1:34 am
by Gjald
Thanks for a fast response andrixx, ill try it out and return with what result i get ;-)
Re: [1.5]Hide/remove/defult predefined Region/State
Posted: Wed Apr 04, 2012 2:47 am
by Gjald
Ok it worked editing what you mentioned ;-) So im very happy!!
The different files had minor differences no biggie ;-)
Thanks alot @ andrixx my hero ;-)
Re: [1.5]Hide/remove/defult predefined Region/State
Posted: Wed Apr 04, 2012 5:24 am
by andrixx
Great that it worked for you, that means you did all the editing before correct!
I know how frustrating this is to do, and when you are a novice on coding this can be a pain!
But, since zones are useless and only confusing here in sweden its a must to remove them.
I hope in the future a change will be made to the core of OC, I understand that it's not the highest priority, but the ability to add and remove fields is a great feature. Should be doable from the admin side.
Re: [1.5]Hide/remove/defult predefined Region/State
Posted: Sun May 06, 2012 6:21 pm
by stenstrom
THANK YOU!!!
style="display:none;"
Worked nice with shoppica theme and OC 1.5.2.1

Re: [1.5]Hide/remove/defult predefined Region/State
Posted: Fri Jun 15, 2012 7:49 pm
by mirek
Hi,
Trying to get this working on 1.5.3.1 but still getting errors during checkour registration or guest checkout. Customer registration, changing or adding address in address book is OK.
I have tried both style="display:none;" and vqmod from zippen. None of them worked...
Anybody have working solution for 1.5.3.1?
Thanks
EDIT: Finally got it working. I've made vQmod for default theme.
Re: [1.5]Hide/remove/defult predefined Region/State
Posted: Wed Aug 08, 2012 5:53 pm
by andrixx
I am trying to do the same for 1.5.3.1 but I don't get it to work.
I assume there is still codes left in some /controller/*/*.php
But I can't figure it out.
Is there anyone out there that take a look for us please?
We need to find the code that makes Zone required and then remove it everywhere.
Re: [1.5]Hide/remove/defult predefined Region/State
Posted: Wed Aug 08, 2012 6:16 pm
by mirek
The vQmod I've posted above is working for me in 1.5.3.1 and default theme.
Try to clean cache (delete content of /system/cache/ folder) if it helps.
Re: [1.5]Hide/remove/defult predefined Region/State
Posted: Wed Aug 08, 2012 6:59 pm
by andrixx
Great! I will try that.
But I see that the line:
Code: Select all
if ($this->request->post['zone_id'] == '') {
appears in a few more files. Maybe your vQmod-file need to comment out it on more places
Search "if ($this->request->post['zone_id'] == '') {" (11 hits in 11 files)
\admin\controller\sale\affiliate.php (1 hits)
\catalog\controller\account\address.php (1 hits)
\catalog\controller\account\register.php (1 hits)
\catalog\controller\affiliate\edit.php (1 hits)
\catalog\controller\affiliate\register.php (1 hits)
\catalog\controller\checkout\cart.php (1 hits)
\catalog\controller\checkout\guest.php (1 hits)
\catalog\controller\checkout\guest_shipping.php (1 hits)
\catalog\controller\checkout\payment_address.php (1 hits)
\catalog\controller\checkout\register.php (1 hits)
\catalog\controller\checkout\shipping_address.php (1 hits)
Re: [1.5]Hide/remove/defult predefined Region/State
Posted: Sun Aug 19, 2012 5:00 pm
by Gjald
Hi i just recently upgraded to 1.5.4
Ill try your VQmod
So far i have succeeded in removing the dropdown and text .. but still get the error

Re: [1.5]Hide/remove/defult predefined Region/State
Posted: Sat Dec 01, 2012 8:23 pm
by aninibr
I also want to try this. First i will try to do the code changes.
Re: [1.5]Hide/remove/defult predefined Region/State
Posted: Mon Feb 18, 2013 1:08 am
by thbr02
Iv'e updated the "remove_region_state.xml" to include the affiliate and admin part. I use Opencart 1.5.1.3 and a custom theme so you might have to change some search strings to fit your theme.
Re: [1.5]Hide/remove/defult predefined Region/State
Posted: Wed Feb 27, 2013 11:56 pm
by maccadon
Thanks, that updated file works perfect!
Re: [1.5]Hide/remove/defult predefined Region/State
Posted: Thu Feb 28, 2013 9:32 am
by Pamella
Great ;-) but not working with v1.5.5 :-( is not ?
Re: [1.5]Hide/remove/defult predefined Region/State
Posted: Thu Feb 28, 2013 2:34 pm
by thbr02
it may be due to this mod is not create for default theme. For use with default theme you might have to change some search strings to fit your theme. Any errors in your log or in your vqmod.log?
Re: [1.5]Hide/remove/defult predefined Region/State
Posted: Tue Mar 12, 2013 2:11 am
by thbr02
Pamella wrote:Great ;-) but not working with v1.5.5 :-( is not ?
Now you can download this mod for OC 1.5.5.1. You'll find it at
http://www.opencart.com/index.php?route ... n_id=10591.
Re: [1.5]Hide/remove/defult predefined Region/State
Posted: Fri May 31, 2013 1:44 am
by mitho105
can you tell me how to get this to work with the shoppica2 theme?
thnak you
Re: [1.5]Hide/remove/defult predefined Region/State
Posted: Sat Jun 01, 2013 8:38 pm
by mitho105
what is it in the xml i would have to change to get it to work whit shoppica 2 theme?
Re: [1.5]Hide/remove/defult predefined Region/State
Posted: Thu Nov 25, 2021 7:10 pm
by nobreak
Opencart 1.5.6.4 don`t work ....

Re: [1.5]Hide/remove/defult predefined Region/State
Posted: Thu Nov 25, 2021 7:37 pm
by mirek
These vQmods works for our 1.5.6.4.
I am not sure if I made any changes due to our theme...
Re: [1.5]Hide/remove/defult predefined Region/State
Posted: Thu Nov 25, 2021 8:49 pm
by nobreak
Thank you so much!
