fix mr
This commit is contained in:
parent
cce0dd2d56
commit
0f7fb86c84
@ -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');
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user