Any ideas on how to integrate go2stream?

  • Posts: 82
  • Thank you received: 8
  • Hikashop Business
3 weeks 4 days ago #364692

Hi client is using this platform and needs hikashop orders to be integrated into their go2stream platform
Specifically users address and item purchased (for logistics)
The platform helps their delivery drivers with route planning and packing the lorry.
www.go2stream.net/API/redoc/index.html
How can i use their API with hikashop? Do i need to write a plugin?

Please Log in or Create an account to join the conversation.

  • Posts: 83022
  • Thank you received: 13403
  • MODERATOR
3 weeks 4 days ago #364693

Hi,

Yes, you'll want to write a plugin:
www.hikashop.com/support/documentation/6...r-documentation.html
You can create a plugin and implement the onAfterOrderCreate event (when an order is created), or the onAfterOrderUpdate event (when an order is being updated), check that the status is being changed (with $order->order_status being there and different from $order->old->order_status ) to confirmed after the payment ( with $order->order_status == 'confirmed' ):
www.hikashop.com/support/documentation/6...l#onAfterOrderUpdate
Then, you can load the full data of the order with the loadFullOrder method :
www.hikashop.com/support/documentation/6...umentation.html#code
And then, you can contact the API of go2stream to get an access token ( check the "authorizations" of the go2stream documentation ).
Once you have the token, you can transfer the data of the order with the correct format as per:
www.go2stream.net/API/redoc/index.html#t...1orders~1orders/post
stackoverflow.com/questions/68015068/php...t-array-within-array

Please Log in or Create an account to join the conversation.

  • Posts: 82
  • Thank you received: 8
  • Hikashop Business
3 weeks 4 days ago #364703

Amazing thank you Nicolas
I will check it out.

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum