Skip to content

Instantly share code, notes, and snippets.

@DenisLeblanc
DenisLeblanc / StockChanger.liquid
Created November 14, 2023 04:26 — forked from atikju/StockChanger.liquid
Show Stock Quantity in Product Page - Shopify
{% comment %} this code goes at the footer {% endcomment %}
{% if template.name == 'product' %}
{{ 'option_selection.js' | shopify_asset_url | script_tag }}
<style>
.selector-wrapper {
display: none !important;
}
</style>
<script>
if(jQuery.browser.msie){
var version = jQuery.browser.version;
switch(version){
case "6.0":
jQuery("html").addClass("ie ie6 lte10 lte9 lte8 lte7");
break;
case "7.0":
jQuery("html").addClass("ie ie7 lte10 lte9 lte8 lte7");
break;
case "8.0":