Page 2 of 2
Re: I can't edit/mody orders (with SSL)after update to 2.1.1
Posted: Thu Mar 03, 2016 6:44 am
by Randem
The simplest approach does not involve changing code you just change all references to HTTPS and you are done. this means in your config files as well as in your store settings. you should not change code unless you have no other options so that there is nothing to maintain and if you choose to change code mad a VQMOD to do so...
Other helpful information:
http://www.randemsystems.com/support/op ... d-to-know/
http://www.randemsystems.com/support/op ... n-2-1-0-1/
http://www.randemsystems.com/support/opencart/
These should help you avoid other issues...
Re: I can't edit/mody orders (with SSL)after update to 2.1.1
Posted: Sun Apr 17, 2016 11:46 am
by pipoy
The fix here helped me.
thanks!
Re: I can't edit/mody orders (with SSL)after update to 2.1.1
Posted: Tue May 10, 2016 2:08 pm
by pm-netti
Re: I can't edit/mody orders (with SSL)after update to 2.1.1
Posted: Thu May 12, 2016 2:00 am
by Chris_UK
The bug is not in the admin side but actually in the customer side in the confirmation file. Ive added the vqmod.
You do not need to make changes to anything other than the one file that is causing the issue, it isnt anything to do with any of the config.php files or even the admin file as previously mentioned in this thread.
Firstly this line will only fix past orders so that you can edit them in your admin area you will also need the bugfix that follows.
Edit as needed to suit your store. NOTE BACKUP YOUR DATABASE BEFORE YOU USE THIS!
Heres the magic.... BACKUP NOW, run this in the sql tab of phpmyadmin or whatever method you prefer.
Code: Select all
UPDATE PREFIX_orders SET store_url = 'https://yourdomain.com';
download the mod here from oc extensions
Here is the cpde if you prefer to do your own patch manually
For those with VQMOD, this is the fix to ensure you get the right store url into your orders in the first place.
make an xml file and paste this into it. (drop into vqmod/xml). then as per the normal manner of things, head into modifications and refresh. You can now place a test order then head to the order for edit tests.
Code: Select all
<modification>
<id>Bugfixes for Catalog ControllerCheckoutConfirm</id>
<version>1.0.0</version>
<vqmver>2.x</vqmver>
<author>Chris Serella | serella_c@hotmail.com</author>
<file name="catalog/controller/checkout/confirm.php">
<operation>
<search position="after"><![CDATA[$order_data['store_url'] = HTTP_SERVER;]]></search>
<add><![CDATA[
if( isset($_SERVER['HTTPS'] ) ) {
$order_data['store_url'] = HTTPS_SERVER;
}
]]></add>
</operation>
</file>
</modification>
And for those without or for those who simply want to manually hard code this: err good luck but all the same.
Open: /catalog/controller/checkout/confirm.php
Find:
Code: Select all
$order_data['store_url'] = HTTP_SERVER;
Add immediately after:
Code: Select all
if( isset($_SERVER['HTTPS'] ) ) {
$order_data['store_url'] = HTTPS_SERVER;
}
All went well? Fantastic. Have a nice day

Re: I can't edit/mody orders (with SSL)after update to 2.1.1
Posted: Thu May 12, 2016 4:21 am
by Randem
Yes, this is all described in a link I already posted...
Re: I can't edit/mody orders (with SSL)after update to 2.1.1
Posted: Thu May 12, 2016 9:39 am
by Chris_UK
Thanks for letting me know randem. I didn't get as far as your last post. I read where it was first claimed to be and found it didn't fix the issue when i patched it, from there it was a small step to realise the placement of the bug had to be during the checkout and so i went hunting.
I don't wish to detract from your effort, your information i'm sure is useful, I just wanted to reply to let you know i got there on my own volition and how i did it.
Re: I can't edit/mody orders (with SSL)after update to 2.1.1
Posted: Thu Aug 11, 2016 4:30 pm
by PipB
Re: I can't edit/mody orders (with SSL)after update to 2.1.1.0
Posted: Sat May 27, 2017 4:10 pm
by sieuthivananh
Dear ll
i have this the same issues with 2.2.0.0 (I can't edit/mody orders (with SSL)
anyone can tell me how to fix it, i spend so much time to fix it, but fail, plz help me
Thank in advance
Re: I can't edit/mody orders (with SSL)after update to 2.1.1.0
Posted: Tue Jun 20, 2017 6:04 pm
by patric_mutwiri
This will work.
I had this particular issue. Once an order is created, I, the Admin, couldn't edit the order. It's not a bug or anything. It's a security update which opencart implemented via user/api, and is called during several operations on site, ie Order Additions, Deletions or Modifications.
For it to work for you, ask your host to disable mod_security for urls with "admin", or urls containing your IP Address, or check if your htaccess can overide and disable it from there.
You can also exclude per request/method type 'POST' or 'GET'.
Please note, Latest mod_sec is mod_security2
Guess am happy after I found out the real issue.
sergiubarbu wrote: ↑Tue Oct 20, 2015 9:59 pm
Hi
There is a BIG bug in the last version of OC 2.1.0.1 : I can't edit/modify the status of the order, or add a comment, when I use SSL!
If I deactivate SSL is working fine.
Any solution for this issue?
Re: I can't edit/mody orders (with SSL)after update to 2.1.1.0
Posted: Mon Oct 09, 2017 3:37 am
by Tulip
KeninOrlanda....
This worked for me. I am elated! Thank you! Thank you! Thank you!
Re: I can't edit/mody orders (with SSL)after update to 2.1.1.0
Posted: Mon Oct 16, 2017 6:24 pm
by ideep13
I tried to turn off the SSL, doesn't work!
It doesn't work if I paste the vqmod code into xml
Editing code with this also doesn't work:
Code: Select all
$data['store_url'] = $order_info['store_url'];
# add the following
if( isset($_SERVER['HTTPS'] ) ) {
$data['store_url'] = str_replace('http://','https://',$data['store_url']);
}
the buttons still loads. I have a OC 2.3.0.2. and it is very frustrating. I need to update the orders immediately.
What should I do?
Re: I can't edit/mody orders to 3.0.3.2 in admin order edit page
Posted: Mon Feb 24, 2020 7:11 pm
by yas
i have moved my admin folder to subdomain its showing 'error undefined' anybody please help me to solve this issue,its working fine in main domain,but i need to move admin folder to subdomain