[-] FO : #PSFV-272 - Add translation + try to not increase global qty of product on choosing "Ship to multiple addresses"
This commit is contained in:
1 parent
bd619432ca
commit
3a1b6a96d5
6 files changed
+43
-19
No files matched your search
@@ -707,9 +707,22 @@ function multishippingMode(it)
|
||||
cleanSelectAddressDelivery();
|
||||
$('#fancybox-content').append($('<div class="multishipping_close_container"><a id="multishipping-close" class="button_large" href="#">' + CloseTxt + '</a></div>'));
|
||||
$('#multishipping-close').click(function() {
|
||||
var newTotalQty = 0;
|
||||
$('#fancybox-content .cart_quantity_input').each(function(){
|
||||
newTotalQty += parseInt($(this).val());
|
||||
});
|
||||
if (newTotalQty != totalQty) {
|
||||
if(!confirm(QtyChanged)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
$.fancybox.close();
|
||||
return false;
|
||||
});
|
||||
totalQty = 0;
|
||||
$('#fancybox-content .cart_quantity_input').each(function(){
|
||||
totalQty += parseInt($(this).val());
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user