Install the widget on OpenCart
Add the DICE chat to an OpenCart 4 store by adding the snippet to the footer template.
<script src="https://diceautomation.com/widget/v1/loader.js" data-business-id="YOUR-BUSINESS-CODE" async></script>Replace YOUR-BUSINESS-CODE with the code from Setup → Install the chat widget.
Steps
- Open your theme's footer template:
catalog/view/template/common/footer.twig(or the same file in your custom theme folder). - Paste the snippet right before
</body>. - In the admin, open Dashboard → Developer settings and refresh the theme and SASS caches.
If you use a theme editor extension, add the snippet through it instead so theme updates keep it.
Carts and purchases
Send cart and purchase events with DICE.track from the cart and success templates: see store events.