Pour corriger l'incompatibilité entre module DigressivePrice et le multi-déclinaisons, sur la page produit

This commit is contained in:
2021-08-06 13:50:28 +02:00
parent d73500fd0a
commit 1fd221182e
92 changed files with 6458 additions and 6452 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 287 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 475 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 579 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 497 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 534 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 291 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 291 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

View File

@@ -12,6 +12,10 @@
} }
$(document).on('change', '#quantity', function() { $(document).on('change', '#quantity', function() {
var $hasDigressivePrice = ($('#has-digressive-price').val() === 'true');
if (!$hasDigressivePrice) return;
var $form = $(this).closest('form'); var $form = $(this).closest('form');
$.ajax({ $.ajax({
url: "{url path="/digressive-price-update"}", url: "{url path="/digressive-price-update"}",
@@ -36,6 +40,6 @@
}); });
}); });
$('#quantity').change(); // $('#quantity').change();
}); });
</script> </script>

View File

@@ -219,6 +219,7 @@
{/if} {/if}
</span> </span>
{/loop} {/loop}
<input type="hidden" id="has-digressive-price" value="true">
{/ifloop} {/ifloop}
{elseloop rel="dp"} {elseloop rel="dp"}
<span id="pse-promo"> <span id="pse-promo">
@@ -229,6 +230,7 @@
<span class="old-price"><span class="price-label">{intl l="Regular Price:"} </span><span id="pse-price-old" class="price">{format_money number=$TAXED_PRICE}</span></span> <span class="old-price"><span class="price-label">{intl l="Regular Price:"} </span><span id="pse-price-old" class="price">{format_money number=$TAXED_PRICE}</span></span>
{/if} {/if}
</span> </span>
<input type="hidden" id="has-digressive-price" value="false">
{/elseloop} {/elseloop}
<!-- TheCoreDev le 21/05/2021 : rajout du prix au kilo --> <!-- TheCoreDev le 21/05/2021 : rajout du prix au kilo -->
<!-- <div class="prix-au-kilo">--> <!-- <div class="prix-au-kilo">-->