Pour corriger l'incompatibilité entre module DigressivePrice et le multi-déclinaisons, sur la page produit
BIN
local/media/images/carousel/flyer-bieauxlegumes-6.jpg
Normal file
|
After Width: | Height: | Size: 78 KiB |
BIN
local/media/images/carousel/welcom2-11.jpg
Normal file
|
After Width: | Height: | Size: 176 KiB |
BIN
local/media/images/product/abricot-111.jpg
Normal file
|
After Width: | Height: | Size: 102 KiB |
BIN
local/media/images/product/ail-112.jpg
Normal file
|
After Width: | Height: | Size: 237 KiB |
BIN
local/media/images/product/artichaut-129.jpg
Normal file
|
After Width: | Height: | Size: 287 KiB |
BIN
local/media/images/product/aspergeverte-136.jpg
Normal file
|
After Width: | Height: | Size: 89 KiB |
BIN
local/media/images/product/avocat-122.jpg
Normal file
|
After Width: | Height: | Size: 475 KiB |
BIN
local/media/images/product/carotteenbotte-138.png
Normal file
|
After Width: | Height: | Size: 312 KiB |
BIN
local/media/images/product/carottepleineterre-139.jpg
Normal file
|
After Width: | Height: | Size: 111 KiB |
BIN
local/media/images/product/celerirave-140.jpg
Normal file
|
After Width: | Height: | Size: 579 KiB |
BIN
local/media/images/product/chou-fleur-133.jpg
Normal file
|
After Width: | Height: | Size: 134 KiB |
BIN
local/media/images/product/citronjaune-108.jpg
Normal file
|
After Width: | Height: | Size: 192 KiB |
BIN
local/media/images/product/clmentine-110.jpg
Normal file
|
After Width: | Height: | Size: 497 KiB |
BIN
local/media/images/product/echalote-121.jpg
Normal file
|
After Width: | Height: | Size: 152 KiB |
BIN
local/media/images/product/fraise-124.jpg
Normal file
|
After Width: | Height: | Size: 534 KiB |
BIN
local/media/images/product/kiwijaune-132.jpg
Normal file
|
After Width: | Height: | Size: 165 KiB |
BIN
local/media/images/product/kiwivert-107.jpg
Normal file
|
After Width: | Height: | Size: 118 KiB |
BIN
local/media/images/product/nectarinejaune-115.jpg
Normal file
|
After Width: | Height: | Size: 176 KiB |
BIN
local/media/images/product/nectarines-114.jpg
Normal file
|
After Width: | Height: | Size: 176 KiB |
BIN
local/media/images/product/oeufs-144.jpg
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
local/media/images/product/orange-109.jpg
Normal file
|
After Width: | Height: | Size: 127 KiB |
BIN
local/media/images/product/orange-128.jpg
Normal file
|
After Width: | Height: | Size: 127 KiB |
BIN
local/media/images/product/pche-118.png
Normal file
|
After Width: | Height: | Size: 291 KiB |
BIN
local/media/images/product/pcheplate-142.jpg
Normal file
|
After Width: | Height: | Size: 76 KiB |
BIN
local/media/images/product/pechejaune-119.png
Normal file
|
After Width: | Height: | Size: 291 KiB |
BIN
local/media/images/product/petitpois-143.jpg
Normal file
|
After Width: | Height: | Size: 78 KiB |
BIN
local/media/images/product/poireau-134.jpg
Normal file
|
After Width: | Height: | Size: 114 KiB |
BIN
local/media/images/product/raisinrouge-126.jpg
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
local/media/images/product/saladebatavia-137.jpg
Normal file
|
After Width: | Height: | Size: 120 KiB |
@@ -12,6 +12,10 @@
|
||||
}
|
||||
|
||||
$(document).on('change', '#quantity', function() {
|
||||
|
||||
var $hasDigressivePrice = ($('#has-digressive-price').val() === 'true');
|
||||
if (!$hasDigressivePrice) return;
|
||||
|
||||
var $form = $(this).closest('form');
|
||||
$.ajax({
|
||||
url: "{url path="/digressive-price-update"}",
|
||||
@@ -36,6 +40,6 @@
|
||||
});
|
||||
});
|
||||
|
||||
$('#quantity').change();
|
||||
// $('#quantity').change();
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -219,6 +219,7 @@
|
||||
{/if}
|
||||
</span>
|
||||
{/loop}
|
||||
<input type="hidden" id="has-digressive-price" value="true">
|
||||
{/ifloop}
|
||||
{elseloop rel="dp"}
|
||||
<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>
|
||||
{/if}
|
||||
</span>
|
||||
<input type="hidden" id="has-digressive-price" value="false">
|
||||
{/elseloop}
|
||||
<!-- TheCoreDev le 21/05/2021 : rajout du prix au kilo -->
|
||||
<!-- <div class="prix-au-kilo">-->
|
||||
|
||||