Skip to content

Instantly share code, notes, and snippets.

@tobymarsden
Created June 19, 2018 14:57
Show Gist options
  • Save tobymarsden/5b41ae8629b3d166cd90e4de95f80808 to your computer and use it in GitHub Desktop.
Save tobymarsden/5b41ae8629b3d166cd90e4de95f80808 to your computer and use it in GitHub Desktop.
window.HYPERVISUAL_CALLBACKS = {
afterProductEmbed: function() {
$(this).find('.hypervisual__embed_product-price, .hypervisual__embed_product-compare-at-price').addClass('money');
if(typeof DoublyGlobalCurrency !== 'undefined') { DoublyGlobalCurrency.convertAll($("[name=doubly-currencies]").val()); }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment