{"product_id":"09-24-2021","title":"09-24-2021","description":"\u003cscript\u003e\n\/\/ \u003c![CDATA[\nrequire([\n    'jquery'\n], function ($) {\n\tvar htmlMarkup = 'div.product-info-main span.price-wrapper span.price'; \/\/ important make sure this is found in correct place\n\n\tvar checkPrice;\n\tvar price = $(htmlMarkup).html();\n\n\tcheckPrice = setInterval(function(){ checkNoCurrencyPrice() }, 100);\n\n\tfunction checkNoCurrencyPrice() {\n\t\tprice = $(htmlMarkup).html();\n\t\tvar q_price = price * 1;\n\n\t\tif(isNumber(q_price)) {\n\t\t\tclearInterval(checkPrice);\n\t\t\t$('#qty').change();\n\t\t}\n\t}\n\n\t$('#qty').change(function() {\n\t    if($(this).val() != '' \u0026\u0026 isNumber($(this).val()) \u0026\u0026 $(this).val() \u003e 0)\n\t    {\n\t       var q_price = price * 1;\n\t       if(isNumber(q_price)) {\n\t\t       var qty = $(this).val() * 1;\n\n\t\t       var total = multiplyMoney(q_price, qty);\n\t\t       $(htmlMarkup).html(Number(total).toFixed(2));\n\t       }\n\t    }\n\t});\n\n\tfunction multiplyMoney(amount, multiplyBy, significantDecimals = 2) {\n\t\tconst precision = Math.pow(10, significantDecimals);\n\t\tconst wholeAmount = amount * precision;\n\t\tconst result = Math.floor(wholeAmount * multiplyBy);\n\t\treturn result \/ precision;\n\t}\n\n\tfunction isNumber(n) {\n\t    return !isNaN(parseFloat(n)) \u0026\u0026 isFinite(n);\n\t}\n});\n\/\/ ]]\u003e\n\u003c\/script\u003e","brand":"Telco Depot","offers":[{"title":"Default Title","offer_id":45171877150789,"sku":"09-24-2021","price":10.0,"currency_code":"USD","in_stock":true}],"url":"https:\/\/telcodepot.com\/products\/09-24-2021","provider":"Telco Depot","version":"1.0","type":"link"}