Pour corriger l'incompatibilité entre module DigressivePrice et le multi-déclinaisons, sur la page produit
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user