Post by mhasheme420 » Mon Aug 21, 2017 11:54 am

I am new with OpenCart. I have a requirement to write an extension that integrates zoho with opencart. I have found many paid api but i would like to make my own. I understand I have to create a module for this but I need to know what event i have to subscribe to and also what object/variable will provide me the complete order information customer/order to pass to zoho.

Newbie

Posts

Joined
Mon Aug 21, 2017 11:48 am

Post by straightlight » Wed Nov 15, 2017 6:09 am

As I have do have my own library for Zoho developed myself, the best location would be in an order total module in a new confirm() method so whenever the user token is found, an order may be edited. If not found, then it's a new order. As for the order complete status:

Code: Select all

$this->load->model('checkout/order');

$this->model_checkout_order->addOrderHistory(your parameters here)
should already take care of that.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 9 guests