I've dug around and found that the 'app.js' uses require() to load the following files (assets/app.js LINES 5-7):
_var Bsify = require('./bsify.js');
var CartJS = require('shopify-cartjs');
var Lookbook = require('./bsify.lookbookgallery.js');
However it seems requirejs.js is not included. Am I missing something or is app.js just a redundant file?
For the sake of context - I began this search to try find an easy way to add an 'add to cart' ajax option from a collections page and was hoping to use Cart.add_item_to_cart($current_target);
I've dug around and found that the 'app.js' uses require() to load the following files (assets/app.js LINES 5-7):
_var Bsify = require('./bsify.js'); var CartJS = require('shopify-cartjs'); var Lookbook = require('./bsify.lookbookgallery.js');
However it seems requirejs.js is not included. Am I missing something or is app.js just a redundant file?
For the sake of context - I began this search to try find an easy way to add an 'add to cart' ajax option from a collections page and was hoping to use
Cart.add_item_to_cart($current_target);