Merge branch 'ticket/r12615-domtom' into dev
This commit is contained in:
commit
b2088d6bf9
@ -37,6 +37,7 @@ class OrderController extends OrderControllerCore
|
||||
$txt = sprintf('"%s" cannot be carried by plane. Please remove the product from your cart so that you can resume your order.', trim($restricted_product['name']));
|
||||
}
|
||||
$this->context->smarty->assign('restricted_product_txt', $txt);
|
||||
$this->context->smarty->assign('restricted_product_id', $restricted_product['id_product']);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -450,7 +450,12 @@ function deleteProductFromSummary(id)
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#product_'+ id).fadeOut('slow', function() {
|
||||
$('#product_' + productId + '_' + productAttributeId + '_0_' + id_address_delivery).fadeOut('slow', function() {
|
||||
if ($('#restricted_product_txt').hasClass('restricted_product_'+productId)) {
|
||||
location.reload();
|
||||
return;
|
||||
}
|
||||
|
||||
$(this).remove();
|
||||
cleanSelectAddressDelivery();
|
||||
if (!customizationId)
|
||||
|
@ -89,7 +89,7 @@
|
||||
|
||||
<div>
|
||||
{if isset($restricted_product_txt) && $restricted_product_txt!=''}
|
||||
<p class="warning restricted_initial" id="restricted_product_txt">
|
||||
<p class="warning restricted_initial {if isset($restricted_product_id)}restricted_product_{$restricted_product_id}{/if}" id="restricted_product_txt">
|
||||
{$restricted_product_txt}
|
||||
</p>
|
||||
{else}
|
||||
|
@ -88,7 +88,7 @@
|
||||
|
||||
<div>
|
||||
{if isset($restricted_product_txt) && $restricted_product_txt!=''}
|
||||
<p class="warning restricted_initial" id="restricted_product_txt">
|
||||
<p class="warning restricted_initial {if isset($restricted_product_id)}restricted_product_{$restricted_product_id}{/if}" id="restricted_product_txt">
|
||||
{$restricted_product_txt}
|
||||
</p>
|
||||
{else}
|
||||
|
@ -58,7 +58,7 @@
|
||||
<p class="warning">{l s='This store has not accepted your new order.'}</p>
|
||||
{else}
|
||||
{if isset($restricted_product_txt) && $restricted_product_txt!=''}
|
||||
<p class="warning" id="restricted_product_txt">
|
||||
<p class="warning {if isset($restricted_product_id)}restricted_product_{$restricted_product_id}{/if}" id="restricted_product_txt">
|
||||
{$restricted_product_txt}
|
||||
</p>
|
||||
{/if}
|
||||
|
Loading…
Reference in New Issue
Block a user