Post by tonybod » Mon Dec 05, 2016 6:13 pm

Hello all,

I need to run some PHP when an order is successfully completed (I need the the order ID to do what I need, add some entries to a different database).

I'm struggling to find where I actually add the code though. I'm sure the answer is somewhere in an old thread in the forum, but I cannot find it (or I'm searching for the wrong thing).

Can anyone help?

Thanks in advance,

Tony.

Newbie

Posts

Joined
Mon Dec 05, 2016 6:10 pm

Post by opencartmart » Tue Dec 06, 2016 11:56 pm

You can use events/script notification in this purpose. Please check this https://github.com/opencart/opencart/wi ... s)-2.2.x.x

If you want me to give example, please tell your OC version exactly

XForm - Opencart Form Builder
Xshippingpro - An advanced Shipping Module
Need Professional support? Skype: opencartmart


Active Member

Posts

Joined
Wed Oct 02, 2013 3:59 am

Post by Johnathan » Wed Dec 07, 2016 3:18 am

If you want to edit the file manually, the one that controls the checkout success page is this one:

/catalog/controller/checkout/success.php

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by tonybod » Wed Dec 07, 2016 4:36 pm

Thanks for the replies, I think the success.php is what I'm looking for.

Tony.

Newbie

Posts

Joined
Mon Dec 05, 2016 6:10 pm
Who is online

Users browsing this forum: No registered users and 4 guests