I upgraded my 1.5.6 OpenCart to 2.3.0.2 version and I have several problems when I edit my received orders.
In Brazil 90% of the internet connections are through dynamic ips, dynamic ips are ips that change daily. To manage my orders I have to add my new IP in API every day, sometimes it happens several times in a day, It's very difficult to work this way.
I think that the opencart system, when the user is logged in the administrative area, this user must to be able to change the orders without the API.
I think that the API is very usefull for external accesses and not when the user is logged in admin area.
When one user is logged in the admin area and this user still needs the api to change an order, THIS IS VERY STUPID.
Does anyone have an extension that allow logged in users change the orders?
Or can help me to change this in code?
In catalog/controller/api/login.php find this line:
And comment the line AFTER it, this will disable error IP message completely, no matter the IP-address.
Code: Select all
if (!in_array($this->request->server['REMOTE_ADDR'], $ip_data)) {
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
So change from this
to this?
I get an error
Code: Select all
if (!in_array($this->request->server['REMOTE_ADDR'], $ip_data)) {
$json['error']['ip'] = sprintf($this->language->get('error_ip'), $this->request->server['REMOTE_ADDR']);
}
Code: Select all
if (!in_array($this->request->server['REMOTE_ADDR'], $ip_data)) {
$this->request->server['REMOTE_ADDR']);
}
Who is online
Users browsing this forum: Google [Bot] and 27 guests