This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {formatMoney} from '@shopify/theme-currency/currency'; | |
| const defaults = { | |
| cartModal: '.js-ajax-cart-modal', // classname | |
| cartModalContent: '.js-ajax-cart-modal-content', // classname | |
| cartModalClose: '.js-ajax-cart-modal-close', // classname | |
| cartDrawer: '.js-ajax-cart-drawer', // classname | |
| cartDrawerContent: '.js-ajax-cart-drawer-content', // classname | |
| cartDrawerClose: '.js-ajax-cart-drawer-close', // classname | |
| cartDrawerTrigger: '.js-ajax-cart-drawer-trigger', // classname |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {formatMoney} from '@shopify/theme-currency/currency'; | |
| import {Power3, TweenMax} from 'gsap/TweenMax'; | |
| import $ from 'jquery'; | |
| const defaults = { | |
| cartModal: '.js-ajax-cart-modal', // classname | |
| cartModalClose: '.js-ajax-cart-modal-close', // classname | |
| cartDrawer: '.js-ajax-cart-drawer', // classname | |
| cartDrawerContent: '.js-ajax-cart-drawer-content', // classname | |
| cartDrawerClose: '.js-ajax-cart-drawer-close', // classname |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {formatMoney} from '@shopify/theme-currency/currency'; | |
| import {Power3, TweenMax} from 'gsap/TweenMax'; | |
| import $ from 'jquery'; | |
| const defaults = { | |
| cartModal: '.js-ajax-cart-modal', // classname | |
| cartModalClose: '.js-ajax-cart-modal-close', // classname | |
| cartDrawer: '.js-ajax-cart-drawer', // classname | |
| cartDrawerContent: '.js-ajax-cart-drawer-content', // classname | |
| cartDrawerClose: '.js-ajax-cart-drawer-close', // classname |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| addBundleToCart.addEventListener('click', (event) => { | |
| event.preventDefault(); | |
| const productId = document.querySelectorAll('.js-ajax-bundle-form'); | |
| const concatedProductIds = []; | |
| let concatedProductIdsString = ''; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {formatMoney} from '@shopify/theme-currency/currency'; | |
| import {Power3, TweenMax} from 'gsap/TweenMax'; | |
| import $ from 'jquery'; | |
| const defaults = { | |
| cartModal: '.js-ajax-cart-modal', // classname | |
| cartModalClose: '.js-ajax-cart-modal-close', // classname | |
| cartDrawer: '.js-ajax-cart-drawer', // classname | |
| cartDrawerContent: '.js-ajax-cart-drawer-content', // classname | |
| cartDrawerClose: '.js-ajax-cart-drawer-close', // classname |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (i < (productForm.length)) { | |
| concatedProductIdsString += `${$(productFormString + '-' + i).serialize()},`; | |
| } else { | |
| concatedProductIdsString += `${$(productFormString + '-' + i).serialize()}`; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {formatMoney} from '@shopify/theme-currency/currency'; | |
| import {Power3, TweenMax} from 'gsap/TweenMax'; | |
| import $ from 'jquery'; | |
| const defaults = { | |
| cartModal: '.js-ajax-cart-modal', // classname | |
| cartModalClose: '.js-ajax-cart-modal-close', // classname | |
| cartDrawer: '.js-ajax-cart-drawer', // classname | |
| cartDrawerContent: '.js-ajax-cart-drawer-content', // classname | |
| cartDrawerClose: '.js-ajax-cart-drawer-close', // classname |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {formatMoney} from '@shopify/theme-currency/currency'; | |
| import {Power3, TweenMax} from 'gsap/TweenMax'; | |
| import $ from 'jquery'; | |
| const defaults = { | |
| cartModal: '.js-ajax-cart-modal', // classname | |
| cartModalClose: '.js-ajax-cart-modal-close', // classname | |
| cartDrawer: '.js-ajax-cart-drawer', // classname | |
| cartDrawerContent: '.js-ajax-cart-drawer-content', // classname | |
| cartDrawerClose: '.js-ajax-cart-drawer-close', // classname |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% assign pack_product_title = product.title %} | |
| {% assign stringSplit = pack_product_title | split:' ' %} | |
| {% for word in stringSplit %} | |
| {% unless forloop.last == true %} | |
| {{ word | strip }} | |
| {% endunless %} | |
| {% endfor %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {formatMoney} from '@shopify/theme-currency/currency'; | |
| import {Power3, TweenMax} from 'gsap/TweenMax'; | |
| import $ from 'jquery'; | |
| const defaults = { | |
| cartModal: '.js-ajax-cart-modal', // classname | |
| cartModalClose: '.js-ajax-cart-modal-close', // classname | |
| cartDrawer: '.js-ajax-cart-drawer', // classname | |
| cartDrawerContent: '.js-ajax-cart-drawer-content', // classname | |
| cartDrawerClose: '.js-ajax-cart-drawer-close', // classname |