Im trying to override a JS function from Bigcartel. I have no access to the JS file.
The original is:
updateCart: function(cart) {
$('aside .cart .count, .main header .cart').htmlHighlight(cart.item_count);
return $('aside .cart .total').htmlHighlight(Format.money(cart.total, true, true));
},
And i am trying to change it to this:
updateCart: function(cart) {
$('aside .cart .count, .sml .cart, .big .cart .count').htmlHighlight(cart.item_count);
return $('aside .cart .total').htmlHighlight(Format.money(cart.total, true, true));
},
I am aware that others have asked similar questions, but i am a complete noob when it comes to understanding how to implement JS (i only know how to tweek through trial and error)
If any one could be so kind as to help me out by giving me the answer that would be great.
Thanks,
iWed-
EDIT [10.10.13 :: 21:24hr]
To clarify, i do not have direct access to the original JS file. i can only view it through chrome. I only have access to html files. It is for a Big cartel theme Edit.
Here is a link to to copied JS using chrome. Line 216 is the code, if this helps : http://jsfiddle.net/w9GTJ/