skip to Main Content

How to Add Multiple Products to Shopify Cart with One Button Click

Here is the button's code: {% assign p_annual = all_products[section.settings.paid_product_annual] %} {% assign p_free = all_products[section.settings.free_product] %} {% if section.settings.productlink1label != blank %} <button class="btn" type="submit" name="paid-plan" id="paid-plan-option-annual" data-variant-id="{{ p_annual.selected_or_first_available_variant.metafields.subscriptions.discount_variant_id }}" data-variant-interval-value="{{ p_annual.metafields.subscriptions.shipping_interval_frequency }}" data-variant-interval-unit="{{ p_annual.metafields.subscriptions.shipping_interval_unit_type }}" data-quickadd-id="{{ p_annual.selected_or_first_available_variant.id }}"…

VIEW QUESTION

Lazy Load External Javascript With Data Parameters – Telegram API

Trying to lazy load this code: <script async src="https://comments.app/js/widget.js?3" data-comments-app-website="TvibSQx_" data-limit="5" data-color="29B127" data-dislikes="1" data-colorful="1"></script> Can lazy load an external JavaScript like this: <script type="text/javascript"> window.addEventListener('scroll', function(e) { var currentScroll = document.scrollingElement.scrollTop; var telegram_target = document.getElementById('telegram'); if( telegram_target && (currentScroll >…

VIEW QUESTION

looping a javascript object inside a loop of custom object – Jquery ajax

First of all I'm beginner in javascript. I have this data data.responseJSOn.errors - Currently I'm displaying the errors like this way - var errors = data.responseJSON.errors; console.log(errors); errors.title && errors.title.forEach(function(messageText) { displayError(messageText); }); errors.message && errors.message.forEach(function(messageText) { displayError(messageText); }); How…

VIEW QUESTION
Back To Top
Search