Post by JGAN » Tue May 16, 2017 12:10 pm

Does anybody know the API call/function to add order history?

New member

Posts

Joined
Wed Jan 13, 2016 7:52 pm

Post by paulfeakins » Tue May 16, 2017 6:32 pm

/catalog/controller/api/order.php:791

#yourewelcome

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Expert Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom

Post by JGAN » Wed May 17, 2017 12:34 pm

Is there any documentation on this? I can't find it anywhere.

New member

Posts

Joined
Wed Jan 13, 2016 7:52 pm

Post by JGAN » Sat May 20, 2017 1:50 pm

I'm having trouble setting $notify to true. Where addOrderHistory is declared on line 242: https://github.com/opencart/opencart/bl ... /order.php

Line 762 seems to be checking for a boolean $notify:

Code: Select all

if ($order_info['order_status_id'] && $order_status_id && $notify) { 
The variables are being passed with POST from the server to the OC API, so I don't see how it's possible to pass a boolean unfortunately. Am I missing something here?

New member

Posts

Joined
Wed Jan 13, 2016 7:52 pm
Who is online

Users browsing this forum: No registered users and 23 guests