To integrate the application with the DecoNetwork platform, follow these steps:
Log in to the Rating Captain application.
Go to the Website tab and click on the button with the DecoNetwork logo.
Then enter your password and login to DecoNetwork and the URL of your online store.
Click the Save button.
If everything was successful, a message about successful integration will appear.
Attention! Within 24 hours, a list of clients to whom invitations requesting their review will be sent will appear in the Rating requests tab.
<script>
var RatingCaptain_data_script = {
/* REQUIRED | Email, on this address will be send message */
"email": "{$order->email}",
/* REQUIRED | Order in your system, this field should be unique */
"external_id": "{$order->id}",
/* Optional - Products in this order, each product must have id name and price. */
"products": [
{
"id": "{$product->id}",
"name": "{$product->name}",
"price": "{$product->price}",
"imageUrl": "{$product->image}",
},
]
}
</script>
<script src="https://dev-api.ratingcaptain.com/js_v2/[Your website token]" async></script>
*Each item in bold must be properly configured depending on your system.*Website token you can find here: Website page.