Hi,
I’m trying to build my first Snipcart integration in Astro and attempting to change the trash and shopping bag icons.
I understand the way to do this is via customised templates and have followed the instructions using the line-item example code to test.
Unfortunately, I can’t seem to get it to work. This is the html:
<!DOCTYPE html>
<html>
<head><title>Templates</title></head>
<body>
<div id="snipcart-templates">
<item-line>
<!-- The template must have a single root element -->
<div class="root">
<h2>Custom Item Line</h2>
<div>This is my overridden item-line template.</div>
</div>
</item-line>
</div>
</body>
</html>
And my snipcart.js:
templatesUrl: “/snipcart-templates.html”,
The html template is in the same folder as the js file (inside my Astro public folder). Any thoughts?