Price update while change the Qty in product details page in magento 1.9

In /js/varien/product.js

Add this on line 694:

var qty;
if($(
'qty').getValue().length==|| isNaN($('qty').getValue()) || $('qty').getValue() <= 0qty 1;
else 
qty = $('qty').getValue();price*=qty;

right after
if (price 0price 0;
and before
if (price || this.displayZeroPrice...

At the end of the file add:

Event.observe(window'load', function() {
    
$('qty').observe('blur', function(e){
        optionsPrice
.reload();
    
});});

Share this

Related Posts

Previous
Next Post »

Pageviews from the past week