Skip to content

Commit

Permalink
remove demo site code
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell committed Nov 28, 2024
1 parent 40cdcc4 commit af7569f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/product.antlers.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ <h1 class="mb-10 text-5xl font-bold leading-tight tracking-tighter">{{ title }}<
{{ /if }}

{{ if {shopify:in_stock :product="slug"} }}
<form @submit.prevent='handleSubmit($event.target); document.getElementById("ss-banner-message").innerHTML = `<div class="text-center"><span class="mr-4">Product added to the basket.</span><a href="/cart" class="inline-flex items-center"><span>Go to cart</span> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" class="ml-2 w-4"><path fill-rule="evenodd" d="M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z" clip-rule="evenodd" /></svg></a></div>`; document.getElementById("ss-banner-message").classList.remove("hidden");'>
<form @submit.prevent='handleSubmit($event.target);'>
<input type="hidden" name="product_id" id="ss-product-id" value="{{ product_id }}" />

{{ shopify:variants:generate show_price="true" show_out_of_stock="true" class="hidden" }}
Expand Down

0 comments on commit af7569f

Please sign in to comment.