Loading...
 
Features / Usability

Features / Usability


Shop to JSON

posts: 126

Hi all,

We are looking to use the Clothes2Order API for dropshipping;

https://www.clothes2order.com/docs/

We need to

  • send each order to them in XML or JSON
  • add other providers in the future


Is that already possible? How would I go about doing this?

Many thanks,

James

posts: 126

I had seen the Web Services plugin, however it is taking data from an external source and showing it in tiki.

external --> Tiki

We need to send data from tiki to the external server

Tiki --> external

When a visitor purchases an item from our shop, Tiki will need to send the contents of the order in JSON format to Clothes2Order using our API key.

posts: 2428 Czech Republic

I think Tiki can export data from trackers only in CSV or YAML format. However it should be easy to write your own PHP script which would convert that CSV to JSON using the json_encode() PHP function. Google for "php csv to json".

Also see https://doc.tiki.org/Export-trackers


posts: 126

I was kina hoping that, since we are in the age of the API, we would already have the capability to work with standard APIs in both directions. Additionally, JSON is arguably the standard format for that purpose these days, so exporting in it appear to be the best approach.

Is this something that would be good as part of tiki core? In general, a plugin (soon to be gadget) that can take data from one plugin or tracker in tiki and then send JSON to a remote server would be really helpful. In the short term, however, a plugin that can just take data from the shop plugin and send it to an external provider would be super helpful for us, and I'm sure for many others.

Don't really want to have to export trackers manually as that will slow orders down which will delay customers from receiving their items.