This commit is contained in:
2026-01-08 14:10:40 +01:00
parent 171c000559
commit 5aa89eb4a4
2 changed files with 9 additions and 2 deletions

View File

@@ -18,7 +18,7 @@
*}
<div class="blockreassurance_product" t="1">
{* {if $product.delivery_in_stock}
{if $product.delivery_in_stock}
<div class="item-999 item-custom">
<span class="item-product">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" data-img-url="/modules/blockreassurance/views/img/img_perso/Package.svg" class="svg replaced-svg">
@@ -41,7 +41,7 @@
<p class="block-description" style="color:#000000;">{$product.delivery_in_stock}</p>
<p class="block-description" style="color:#000000; display:none;">{$product.delivery_out_stock}</p>
</div>
{/if} *}
{/if}
{foreach from=$blocks item=$block key=$key}

View File

@@ -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(
'<div class="product-delivery-time-block">' + e.product_delivery_time + '</div>'