Hello,
Currently we're developing a multivendor e-commerce website and the task is to implement 3rd party delivery service API.
API is organized around REST. It returns JSON encoded response bodies, uses standard HTTP response codes, authentication, and verbs.
Authorization happens through username and access token.
The idea is:
1. To send specific order related information to the API.
2. Get their response.
3. Upon getting the response update corresponding fields on "My Order" page according to the acquired information.
Current question is how to integrate this 3rd party delivery service API into the system. Which parts of the codebase should be explored or what steps should I take?
Yes, new shipping calculators can be integrated via the new add-on. But CS-Cart does not offer documentation for it at the moment
Hello
I think you should see how UPS or Fedex integrated delivery. In the directory /app/Tygh/Shippings/Services you can view the integration files. It can help you.
Best regards
Robert
Hello
I think you should see how UPS or Fedex integrated delivery. In the directory /app/Tygh/Shippings/Services you can view the integration files. It can help you.
Best regards
Robert
Thank you for the advice. I will check that directory.
Yes, new shipping calculators can be integrated via the new add-on. But CS-Cart does not offer documentation for it at the moment
It is not a shipping calculator. It's an API that allows to issue delivery orders and track them.
It is not a shipping calculator. It's an API that allows to issue delivery orders and track them.
In this case you can use hooks in the fn_change_order_status function (app/functions/fn.cart.php) to send required data to API on specific order status change