Remove “Zone” Field OC v.3.0.0.0, 3.0.1.1, 3.0.1.2, 3.0.2.0
The module simply removes this field, so it would not bother your customers.
https://www.opencart.com/index.php?rout ... n_id=36141
---
Disable / Remove zone field
VQMod to disable the zone field in edit address and edit profile.
https://www.opencart.com/index.php?rout ... n_id=36454
---
Remove Region / State / Zone v 2.x and 3.x paid
https://www.opencart.com/index.php?rout ... n_id=18848
---
Remove Fields From Register-Checkout-Billing-Delivery paid
https://www.opencart.com/index.php?rout ... n_id=22795
---
Remove State / Region Zone From ALL paid
https://www.opencart.com/index.php?rout ... n_id=35212
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Try this: https://www.opencart.com/index.php?rout ... n_id=18848imran basha wrote: ↑Fri Oct 09, 2020 2:54 amHi, we have disabled some of our zones but the customer have registered with the disabled zones earlier are still having the same zone. how to make a prompt to the specified customer to update their zone with the available zone. thanks in advance.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Interesting ...imran basha wrote: ↑Fri Oct 09, 2020 2:54 amHi, we have disabled some of our zones but the customer have registered with the disabled zones earlier are still having the same zone. how to make a prompt to the specified customer to update their zone with the available zone. thanks in advance.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
In catalog/controller/checkout/login.php file,
find:
Code: Select all
if (!isset($json['error'])) {
if (!$this->customer->login($this->request->post['email'], $this->request->post['password'])) {
$json['error']['warning'] = $this->language->get('error_login');
$this->model_account_customer->addLoginAttempt($this->request->post['email']);
} else {
$this->model_account_customer->deleteLoginAttempts($this->request->post['email']);
}
}
Code: Select all
if (!isset($json['error'])) {
if (!$this->customer->login($this->request->post['email'], $this->request->post['password'])) {
$json['error']['warning'] = $this->language->get('error_login');
$this->model_account_customer->addLoginAttempt($this->request->post['email']);
} else {
// COVID-19 situations.
$this->load->model('localisation/country');
$this->load->model('localisation/zone');
$this->load->model('account/address');
$country_info = $this->model_localisation_country->getCountry($customer_info['country_id']);
$zone_info = $this->model_localisation_zone->getZone($customer_info['zone_id']);
$addresses = $this->model_account_address->getAddresses();
$country_addresses = array();
$zone_addresses = array();
foreach ($addresses as $key => $address) {
$country_addresses[] = $address['country_id'];
$zone_addresses[] = $address['zone_id'];
}
if ((!$country_info) || (!$zone_info) || ($addresses && ((!in_array($country_info['country_id'], $country_addresses)) || (!in_array($zone_info['zone_id'], $zone_addresses))))) {
$json['error']['warning'] = $this->language->get('error_zone_status');
$this->model_account_customer->addLoginAttempt($this->request->post['email']);
}
if (!$json) {
$this->model_account_customer->deleteLoginAttempts($this->request->post['email']);
} else {
$this->customer->logout();
}
}
}
at the bottom of the file, add:
Code: Select all
$_['error_zone_status'] = 'Warning: The zone that has been configured on your profile is no longer provided by our store. Please select another zone from your profile!';
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
sorry I think i don't explain my problem properly.
example: assume we were delivering products in London(zone) but later we stopped delivering to London so we disable the london(zone) but the problem is the customer who have saved the address in their account the zone london is there even when we have disable it so when they make a order the address in the order cames as london(zone). any help will be greatly appreciated.
If for example you don't want to ship to customers from London, why not just exclude the 'Greater London' from the shipping method's geo_zone? This way when a customer from London tries to do a checkout, he won't be offered a shipping method. All you might possibly have to do is to modify the error message to something like 'Sorry, we are not shipping to your area'.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Basically his issue is for existing customers not the new customers.Thank you so much for all your replies.
sorry I think i don't explain my problem properly.
example: assume we were delivering products in London(zone) but later we stopped delivering to London so we disable the london(zone) but the problem is the customer who have saved the address in their account the zone london is there even when we have disable it so when they make a order the address in the order cames as london(zone). any help will be greatly appreciated.
1)Just an idea remove the manual save address for effected customers
2) Send email to the customers to notify about new change and encourage them to change the address before order.
Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature
thank you sir for your suggestion.JNeuhoff wrote: ↑Sun Oct 11, 2020 6:30 pmI think you are going about it the wrong way.
If for example you don't want to ship to customers from London, why not just exclude the 'Greater London' from the shipping method's geo_zone? This way when a customer from London tries to do a checkout, he won't be offered a shipping method. All you might possibly have to do is to modify the error message to something like 'Sorry, we are not shipping to your area'.
thank you sir i appricate you help.khnaz35 wrote: ↑Sun Oct 11, 2020 6:39 pmOP user issue isBasically his issue is for existing customers not the new customers.Thank you so much for all your replies.
sorry I think i don't explain my problem properly.
example: assume we were delivering products in London(zone) but later we stopped delivering to London so we disable the london(zone) but the problem is the customer who have saved the address in their account the zone london is there even when we have disable it so when they make a order the address in the order cames as london(zone). any help will be greatly appreciated.
1)Just an idea remove the manual save address for effected customers
2) Send email to the customers to notify about new change and encourage them to change the address before order.
I have improved the solution on the codes above. See if that, now, fits your request based on the customers' addresses and your store's zone's geographic settings.imran basha wrote: ↑Sun Oct 11, 2020 4:54 pmThank you so much for all your replies.
sorry I think i don't explain my problem properly.
example: assume we were delivering products in London(zone) but later we stopped delivering to London so we disable the london(zone) but the problem is the customer who have saved the address in their account the zone london is there even when we have disable it so when they make a order the address in the order cames as london(zone). any help will be greatly appreciated.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
thank you so much for your help sir.straightlight wrote: ↑Sun Oct 11, 2020 8:57 pmI have improved the solution on the codes above. See if that, now, fits your request based on the customers' addresses and your store's zone's geographic settings.imran basha wrote: ↑Sun Oct 11, 2020 4:54 pmThank you so much for all your replies.
sorry I think i don't explain my problem properly.
example: assume we were delivering products in London(zone) but later we stopped delivering to London so we disable the london(zone) but the problem is the customer who have saved the address in their account the zone london is there even when we have disable it so when they make a order the address in the order cames as london(zone). any help will be greatly appreciated.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Users browsing this forum: No registered users and 521 guests