Post by qtwrk » Sun May 21, 2017 8:26 am

Hi , I wanna add a php line after the "add history" button is clicked in admin panel ---> order info when edit order status.

I have been trying to insert line in /admin/controller/sale/order.php and /admin/model/sale/order.php , but guess I inserted in wrong place so no affect at all...

could someone please tell me where exactly so I put it ?

my goal is:
in admin panel , when I edited order status , my php code will run one time right after I click "add history" button.
I am on 2.3.0.2

any help would be much appreciated.

New member

Posts

Joined
Tue Dec 09, 2014 5:21 am

Post by IP_CAM » Sun May 21, 2017 11:38 am

The only free Mod I know of, to achieve at least something similar, is only for OC v.1.5.6.4 + 5
but you may be able to get some insight view on, how to make such work in your Version.
---
otherways, it's just too much work involved, to make it for free, I assume... :'(
Just an Idea, good Luck ;)
Ernie
---
[vqmod] Customer Comment Template free, OC v.1.5.6.x (looks as on the image below)
https://www.opencart.com/index.php?rout ... n_id=20940
---
Paid Mods for OC v.2.x Versions:
---
Order history default comments
https://www.opencart.com/index.php?rout ... n_id=25348
---
Order History Advanced - template comments, file uploads ++
https://www.opencart.com/index.php?rout ... n_id=29994
---
Admin Order Histroy Tracking
https://www.opencart.com/index.php?rout ... n_id=26947
---
Pre-set Admin Order and Return Comments
https://www.opencart.com/index.php?rout ... on_id=3877
---
Canned Messages
https://www.opencart.com/index.php?rout ... n_id=21335
---
Order Comment Template
https://www.opencart.com/index.php?rout ... n_id=20964
---
found here:
https://www.opencart.com/index.php?rout ... 20comments
---
Image

Attachments

order_comment.jpg

order_comment.jpg (35.93 KiB) Viewed 945 times


Please don't send Personal OC Forum Messages, contact: jti@jacob.ch
---
Test Site: http://www.bigmax.ch/shop/
Github OC Downloads: https://github.com/IP-CAM
2'200+ FREE OC Extensions from the World's largest Github OC Repository Archive.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by qtwrk » Sun May 21, 2017 2:41 pm

IP_CAM wrote:
Sun May 21, 2017 11:38 am
The only free Mod I know of, to achieve at least something similar, is only for OC v.1.5.6.4 + 5
but you may be able to get some insight view on, how to make such work in your Version.
---
otherways, it's just too much work involved, to make it for free, I assume... :'(
Just an Idea, good Luck ;)
Ernie
---
[vqmod] Customer Comment Template free, OC v.1.5.6.x (looks as on the image below)
https://www.opencart.com/index.php?rout ... n_id=20940
---
Paid Mods for OC v.2.x Versions:
---
Order history default comments
https://www.opencart.com/index.php?rout ... n_id=25348
---
Order History Advanced - template comments, file uploads ++
https://www.opencart.com/index.php?rout ... n_id=29994
---
Admin Order Histroy Tracking
https://www.opencart.com/index.php?rout ... n_id=26947
---
Pre-set Admin Order and Return Comments
https://www.opencart.com/index.php?rout ... on_id=3877
---
Canned Messages
https://www.opencart.com/index.php?rout ... n_id=21335
---
Order Comment Template
https://www.opencart.com/index.php?rout ... n_id=20964
---
found here:
https://www.opencart.com/index.php?rout ... 20comments
---
Image
Im sorry, what?
Only thing i nedd to know is that, when click that "add order status", what code in which file will be used, from there i can insert my line, i just could not find it where it is.

New member

Posts

Joined
Tue Dec 09, 2014 5:21 am

Post by IP_CAM » Mon May 22, 2017 2:33 am

well, the free Mod, listed above, would clearly show, where something
like your content needs to placed. But who could know, since you did
not tell us about...
Good Luck

Please don't send Personal OC Forum Messages, contact: jti@jacob.ch
---
Test Site: http://www.bigmax.ch/shop/
Github OC Downloads: https://github.com/IP-CAM
2'200+ FREE OC Extensions from the World's largest Github OC Repository Archive.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by qtwrk » Mon May 22, 2017 3:40 am

IP_CAM wrote:
Mon May 22, 2017 2:33 am
well, the free Mod, listed above, would clearly show, where something
like your content needs to placed. But who could know, since you did
not tell us about...
Good Luck
oops , that's not what I meant.

I mean , when you click in order info page, "add history" button.
the system will make some change in database , right ?
that's what I need to know , where is the code related to this part.

New member

Posts

Joined
Tue Dec 09, 2014 5:21 am

Post by qtwrk » Mon May 22, 2017 4:36 am

never mind , i found it , it's in /catalog/model/checkout/order.php

New member

Posts

Joined
Tue Dec 09, 2014 5:21 am
Who is online

Users browsing this forum: No registered users and 17 guests