Devera Widget Integration in Shopify
- Go to Shopify Admin and click on Online Shop -> Themes.
- Click on ... and then Edit code.
- On the sidebar you click on templates/product.json
- Add a new part in the JSON named devera as you can see in the image:
"devera": { "type": "custom-product-block", "settings": {} },
- Add devera in the order list and save the changes to the file:
- Go to sections and click on Add new section.
- Copy and paste the code of the new block here and save the changes to the file.
<devera-widget
product-id="{{ product.id }}"
client-id="<your-client-id>"
token="<your-token>"
language="{{ request.locale.iso_code }}">
</devera-widget>
<script src="https://widget.devera.ai/recycling.umd.js" async></script>
{% schema %}
{
"name": "Custom Product Block",
"settings": [],
"presets": [
{
"name": "Devera"
}
]
}
{% endschema %}
Congrats, you have the devera widget in your Shopify :tada: