I'm trying to add a small image under the Check Out button in Shopify. Tried in multiple places. Using Brooklyn theme.
I'm using liquid tags and trying to add it inside the ajax-cart-template.liquid. This is the section where I'm adding it:
<div class="ajaxcart__footer ajaxcart__footer--fixed">
<div class="grid--full">
<div class="grid__item two-thirds">
<p class="ajaxcart__subtotal">{% endraw %}{{ 'cart.general.subtotal' | t }}{% raw %}</p>
</div>
<div class="grid__item one-third text-right">
<p class="ajaxcart__subtotal">{{{totalPrice}}}</p>
1. <img src="{{ 'image.png' | asset_url | img_tag }}"/>
</div>
</div>
{{#if totalCartDiscount}}
<p class="ajaxcart__savings text-center">{{{totalCartDiscount}}}</p>
{{/if}}
<p class="ajaxcart__note text-center">{% endraw %}{{ 'cart.general.shipping_at_checkout' | t }}{% raw %}</p>
<button type="submit" class="btn--secondary btn--full cart__checkout" name="checkout">
{% endraw %}{{ 'cart.general.checkout' | t }}{% raw %} <span class="icon icon-arrow-right" aria-hidden="true"></span>
</button>
2. <img src="{{ 'image.png' | asset_url | img_tag }}"/>
</div>
When I do this the cart just keeps loading and hangs. The "add to cart" button from a product page doesn't work also.
I'm unfamiliar with AJAX and just touched Javascript recently. Do I need to declare this image tag somewhere else too?
Thank you!