In /js/varien/product.js
Add this on line 694:
var qty;
if($('qty').getValue().length==0 || isNaN($('qty').getValue()) || $('qty').getValue() <= 0) qty = 1;
else qty = $('qty').getValue();price*=qty;
right after
and beforeif (price < 0) price = 0;
if (price > 0 || this.displayZeroPrice) { ...
At the end of the file add:
Event.observe(window, 'load', function() {
$('qty').observe('blur', function(e){
optionsPrice.reload();
});});
Next
« Prev Post
« Prev Post
Previous
Next Post »
Next Post »
Subscribe to:
Post Comments (Atom)