JSON type data is inserted into the website source code to enable proper communication between e-commerce systems and NGChat. JSON data comprises several branches. Each of the branches is responsible for data displayed in the NGChat system dashboard. The NGChat plug-in installed on the website is responsible for the transfer of data between an e-commerce system and NGChat (go to http://www.ngchat.com/integration to view the installation manual).
A sample JSON for user_info
user_info:{ "uuid":"32dcds932d8c0j3209ji20n", "email":"john.doe@mail.com", "name":"John", "lastname":"Doe", "conversion":"0.73", "street":[ "123 Main St" ], "city":"New York", "postcode":"NY 10016", "country":"USA", "telephone":"+1 555 555 666" }
The list of products in the cart—products
The list of products in the cart—total_cart_price
A sample JSON for cart_info
cart_info:{ products:[ { "name_prod": "Apple I-Phone 6", "qty": 1, "price_prod": 399, "id_prod": "32kdmc932k", "currency_code": "USD", "order_c": 1, "cart_c": 1, "view_c": 10, "url_prod": "http://example-shop.com/iphone6", "img_url_prod": "http://example-shop.com/img/iphone6.jpg", "conversion": 0.1 } ], total_cart_price:[ { "total_price": 399 "currency_code": "USD" } ] }
The list of a user’s orders—order
A summary of all user’s orders—total
A sample JSON for order_info
order_info:{ order:[ { "order_id": "100013517", "total_price": 39.84, "currency_code": "USD", "date": "05-05-2015 10:56:10", "order_url": "http://example-shop.com/orders/id/0ed956464a327060c65e62d601d0d8ab", "order_status": "Canceled" } ], total:[ { "qty": 1, "total_price": 39.84, "average": 39.84, "currency_code": "USD" } ] }
The list of viewed products—view
The list of products added to the cart—cart
The list of products ordered by a user—order
A sample JSON for latest24
latest24:{ view:[ { "id_prod": 321ecdc244e, "name_prod": "Apple IPad 3", "price_prod": 499.99, "currency_code": "USD", "url_prod": "http://example-shop.com/ipad3", "img_url_prod": "http://example-shop.com/img/ipad3.jpg" } ], cart:[ { "id_prod": 321ecdc244e, "name_prod": "Apple IPad 3", "price_prod": 499.99, "currency_code": "USD", "url_prod": "http://example-shop.com/ipad3", "img_url_prod": "http://example-shop.com/img/ipad3.jpg" } ], order:[ { "id_prod": 321ecdc244e, "name_prod": "Apple IPad 3", "price_prod": 499.99, "currency_code": "USD", "url_prod": "http://example-shop.com/ipad3", "img_url_prod": "http://example-shop.com/img/ipad3.jpg" } ] }
The list of abandoned products
abandoned_products:[ { "id_prod": 4640, "name_prod": "Apple IPhone5s", "url_prod": "http://example-shop.com/iphone5s", "img_url_prod": "http://example-shop.com/img/iphone5s.jpg", "price_prod": 299.99, "currency_code": "USD" }, { "id_prod": 4941, "name_prod":"Samsung Glaxy S6", "url_prod":"http://example-shop.com/sgalaxys6", "img_url_prod":"http://example-shop.com/img/sgalaxys6.jpg", "price_prod": 699.99, "currency_code": "USD" } ]
Do you want to include more information about a client to enable an agent to preview it in the NGChat dashboard? No problem! Use a widget wizard in the Partners NGChat system.
A sample JSON which will enable testing of the communication between the plug-in and the NGChat system.
{ user_info:{ "uuid":"32dcds932d8c0j3209ji20n", "email":"john.doe@mail.com", "name":"John", "lastname":"Doe", "conversion":"0.73", "street":[ "123 Main St" ], "city":"New York", "postcode":"NY 10016", "country":"USA", "telephone":"+1 555 555 666" }, cart_info:{ products:[ { "name_prod": "Apple I-Phone 6", "qty": 1, "price_prod": 399, "id_prod": "32kdmc932k", "currency_code": "USD", "order_c": 1, "cart_c": 1, "view_c": 10, "url_prod": "http://example-shop.com/iphone6", "img_url_prod": "http://example-shop.com/img/iphone6.jpg", "conversion": 0.1 } ], total_cart_price:[ { "total_price": 399 "currency_code": "USD" } ] }, order_info:{ order:[ { "order_id": "100013517", "total_price": 39.84, "currency_code": "USD", "date": "05-05-2015 10:56:10", "order_url": "http://example-shop.com/orders/id/0ed956464a327060c65e62d601d0d8ab", "order_status": "Canceled" } ], total:[ { "qty": 1, "total_price": 39.84, "average": 39.84, "currency_code": "USD" } ] }, latest24:{ view:[ { "id_prod": 321ecdc244e, "name_prod": "Apple IPad 3", "price_prod": 499.99, "currency_code": "USD", "url_prod": "http://example-shop.com/ipad3", "img_url_prod": "http://example-shop.com/img/ipad3.jpg" } ], cart:[ { "id_prod": 321ecdc244e, "name_prod": "Apple IPad 3", "price_prod": 499.99, "currency_code": "USD", "url_prod": "http://example-shop.com/ipad3", "img_url_prod": "http://example-shop.com/img/ipad3.jpg" } ], order:[ { "id_prod": 321ecdc244e, "name_prod": "Apple IPad 3", "price_prod": 499.99, "currency_code": "USD", "url_prod": "http://example-shop.com/ipad3", "img_url_prod": "http://example-shop.com/img/ipad3.jpg" } ] }, abandoned_products:[ { "id_prod": 4640, "name_prod": "Apple IPhone5s", "url_prod": "http://example-shop.com/iphone5s", "img_url_prod": "http://example-shop.com/img/iphone5s.jpg", "price_prod": 299.99, "currency_code": "USD" }, { "id_prod": 4941, "name_prod":"Samsung Glaxy S6", "url_prod":"http://example-shop.com/sgalaxys6", "img_url_prod":"http://example-shop.com/img/sgalaxys6.jpg", "price_prod": 699.99, "currency_code": "USD" } ] }