This file contains 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
// Create a global function that handles all cart-related JS | |
initCart = function (obj) { | |
// Do all cart things here | |
// If running as the ajax cart callback, an object is returned | |
if (obj.is_visible) { | |
// the cart is shown | |
} else { | |
// the cart was hidden | |
} |
This file contains 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
window.timber = window.timber || {}; | |
timber.cacheSelectors = function () { | |
timber.cache = { | |
// Product Page | |
$productImageWrap: $('#productPhoto'), | |
$productImage: $('#productPhotoImg'), | |
$thumbImages: $('#productThumbs').find('a.product-photo-thumb') | |
} | |
}; |
OlderNewer