skip to Main Content

jQuery Find not working with HTML template – Shopify

I have a Shopify liquid I load into HTML Template <script type="text/template" id="description"> <div class="product-ddd"> {{ product.description }} </div> </script> <script> $("#description").each(function() { console.log($(this).html()); }); </script> For some reason, find is not working <script> $("#description").find('h4').each(function() { console.log($(this).html()); }); </script> This…

VIEW QUESTION

Shopify Webhooks Hmac Python verification fails

I am trying to verify the webhook received from Shopify but the Hmac verification fails. def verify_webhook(data, hmac_header): digest = hmac.new(SECRET.encode('utf-8'), data, hashlib.sha256).digest() computed_hmac = base64.b64encode(digest) return hmac.compare_digest(computed_hmac, hmac_header.encode('utf-8')) @app.route('/productCreation', methods=['POST']) def productCreation(): data = request.data verified = verify_webhook( data,…

VIEW QUESTION
Back To Top
Search