[-] FO : #PSFV-272 - Add translation + try to not increase global qty of product on choosing "Ship to multiple addresses"
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11986 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
2e09799884
commit
e7e22788e7
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