Skip to content

Instantly share code, notes, and snippets.

@kyledurand
Last active August 29, 2015 14:12
Show Gist options
  • Save kyledurand/54ea27dfb78338fcc61a to your computer and use it in GitHub Desktop.
Save kyledurand/54ea27dfb78338fcc61a to your computer and use it in GitHub Desktop.
Updating cart drawer info
var cc = Currency.currentCurrency;
$( document ).ajaxComplete(function() {
if (Currency.currentCurrency.length == 0){
jQuery('.selected-currency').text(cc);
} else {
jQuery('.selected-currency').text(Currency.currentCurrency);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment