This commit is contained in:
PLESK5 2017-05-05 10:51:48 +02:00
parent cce0dd2d56
commit 0f7fb86c84
2 changed files with 47 additions and 34 deletions

View File

@ -1281,6 +1281,11 @@ var PS_MRObject = (function($, undifened) {
return true;
});
var mrChecked = $('#delivery_option_3954_1').prop('checked');
if(mrChecked) {
$('#delivery_option_3954_1').trigger('click');
}
if (typeof(PS_MR_SELECTED_TAB ) != 'undefined')
$('#MR_' + PS_MR_SELECTED_TAB + '_block').fadeIn('fast');

View File

@ -693,8 +693,12 @@ function downQuantity(id, qty)
}
}
function updateCartSummary(json)
function updateCartSummary(json, test_discount)
{
if (test_discount == 'undefined') {
test_discount = true;
}
var i;
var nbrProducts = 0;
var product_list = new Array();
@ -767,6 +771,8 @@ function updateCartSummary(json)
nbrProducts += parseInt(product_list[i].quantity);
}
if (test_discount) {
// Update discounts
if (json.discounts.length == 0)
{
@ -803,6 +809,8 @@ function updateCartSummary(json)
$('#cart_discount_' + idElmt + ', #cart_total_voucher').fadeTo('fast', 0, function(){ $(this).remove(); });
});
}
}
// Block cart
$('#cart_block_shipping_cost').show();
@ -919,8 +927,8 @@ function updateCartSummary(json)
$('#modeDeLivraison').show();
}
if (window.ajaxCart !== undefined)
ajaxCart.refresh();
// if (window.ajaxCart !== undefined)
// ajaxCart.refresh();
}
function updateCustomizedDatas(json)
@ -1033,7 +1041,7 @@ function updateExtraCarrier(id_delivery_option, id_address)
+'&allow_refresh=1',
success: function(jsonData)
{
updateCartSummary(jsonData['summary']);
updateCartSummary(jsonData['summary'], false);
$('#HOOK_EXTRACARRIER_'+id_address).html(jsonData['content']);
},
error: function(jsonData)