diff --git a/modules/blockreassurance/views/templates/hook/displayBlockProduct.tpl b/modules/blockreassurance/views/templates/hook/displayBlockProduct.tpl index 0c7d01f2..105a3568 100644 --- a/modules/blockreassurance/views/templates/hook/displayBlockProduct.tpl +++ b/modules/blockreassurance/views/templates/hook/displayBlockProduct.tpl @@ -18,7 +18,7 @@ *}
- {* {if $product.delivery_in_stock} + {if $product.delivery_in_stock}
@@ -41,7 +41,7 @@

{$product.delivery_in_stock}

- {/if} *} + {/if} {foreach from=$blocks item=$block key=$key} diff --git a/themes/core.js b/themes/core.js index 040d3637..c77e8116 100644 --- a/themes/core.js +++ b/themes/core.js @@ -985,6 +985,9 @@ } ), o.default.on('updateProduct', function (e) { + + console.log('test: ', e); + var t = e.eventType, n = e.event ; (function () { @@ -1055,6 +1058,7 @@ ) { u.data('old-value', u.val()), l && clearTimeout(l) var m = 30 + 'updatedProductQuantity' === t && (m = 750), (l = setTimeout(function () { '' !== f && @@ -1150,9 +1154,12 @@ .first() .replaceWith(e.product_flags), + console.log(e.product_delivery_time); + e.product_delivery_time && (function () { var $target = (0, r.default)('.blockreassurance_product').first(); if ($target.length) { + $target.find('.item-999.item-custom').remove(); $target.find('.product-delivery-time-block').remove(); $target.prepend( '
' + e.product_delivery_time + '
'