It sure is: http://www.opencart.com/index.php?route ... on_id=3913 .
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
No.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I try to do the opposite!
I have another script which needs to access the OC database, and that side of the job is done.
Where I'm stuck is on the OC side.
Basically I need OC to fill 2 fields (customer email, and purchased product model) in a new table within the OC database.
Obviously I need this done only if the payment is confirmed, or if I change the status to complete manually.
Can somebody point me to the correct direction please?
Which files I need to edit?
Could I use session data for this? or do i need to do a database query?
Thanks in advance
I have another script which needs to access the OC database, and that side of the job is done.
Where I'm stuck is on the OC side.
Basically I need OC to fill 2 fields (customer email, and purchased product model) in a new table within the OC database.
Obviously I need this done only if the payment is confirmed, or if I change the status to complete manually.
Can somebody point me to the correct direction please?
Which files I need to edit?
Could I use session data for this? or do i need to do a database query?
Thanks in advance

Since this request seem to be about two fields, importing the data from CSV would be the most easiest solution.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Hi,
Thanks for the reply
I'm not really looking for the easiest solution, and dealing with the CSV annoy me a bit .
I prefer an automatic unattended option.
How about
placed in catalog\model\checkout\order.php inside the "confirm" function?
will this also work when changing the order status to "complete" manually fro the admin?
I guess I'll have to give it a try while I'm waiting for a reply[/s]
No that was definitely the wrong file to edit..... I will keep trying
Thanks for the reply
I'm not really looking for the easiest solution, and dealing with the CSV annoy me a bit .
I prefer an automatic unattended option.

How about
Code: Select all
$this->db->query(INSERT INTO my_custom_table (email,model) VALUES ((select email from oc_order where oc_order.order_id='oc_order_product.order_id),(select model from oc_order_product where oc_order.order_id=oc_order_product.order_id)));
will this also work when changing the order status to "complete" manually fro the admin?
I guess I'll have to give it a try while I'm waiting for a reply[/s]
No that was definitely the wrong file to edit..... I will keep trying

Who is online
Users browsing this forum: No registered users and 4 guests