Page 2 of 2

Re: V2.1.0.1 SSL View Admin Order Issue

Posted: Thu Aug 11, 2016 3:40 pm
by PipB
Thanks LuboUzunov!!! It's great!
The Bug Fixes for 2.1.* solved the problem not possible to edit orders when SSL is turned on.

LuboUzunov solution you can find it here:
http://www.opencart.com/index.php?route ... =42&page=7

I solved the error, now I can edit an order AND save it.

When opening an order:
I did have in Firefox:
[Exception... "<no message>" nsresult: "0x805e0006 (<unknown>)" location: "JS frame :: https://flowcentre.co.uk/admin/view/jav ... 1.1.min.js :: .send :: line 4" data: no]
And in IE: Error: Access is denied. undefined

Re: V2.1.0.1 SSL View Admin Order Issue

Posted: Thu Aug 11, 2016 4:24 pm
by PipB
Maybe this solve the problem:
http://www.opencart.com/index.php?route ... =42&page=7

My did

Re: V2.1.0.1 SSL View Admin Order Issue

Posted: Thu Aug 11, 2016 7:46 pm
by straightlight
Take note that using OCMod and VQMod for bugfixes is not a recommended solution: http://forum.opencart.com/viewtopic.php?f=191&t=165826

Re: V2.1.0.1 SSL View Admin Order Issue

Posted: Wed Nov 16, 2016 5:28 pm
by xseon
The problem with "Error: Undefined" seems to be fixed in OC 2.3, so just apply the solution from there:
1. Open /admin/controller/sale/order.php
2. Find the following:

Code: Select all

			$data['store_url'] = $this->request->server['HTTPS'] ? str_replace("http", "https", $order_info['store_url']) : $order_info['store_url'];
3. Replace it with:

Code: Select all

			if ($order_info['store_id'] == 0) {
				$data['store_url'] = $this->request->server['HTTPS'] ? HTTPS_CATALOG : HTTP_CATALOG;
			} else {
				$data['store_url'] = $order_info['store_url'];
			}
4. Save.

This handles all redirection issues like SSL or non-www to www.