add basket on merchandise form
This commit is contained in:
@@ -25,6 +25,15 @@
|
|||||||
])
|
])
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
@if ($article['offers']['marchandise'] ?? false)
|
||||||
|
@include('Shop.Articles.partials.addBasket', [
|
||||||
|
'data' => $article['offers']['marchandise'],
|
||||||
|
'title' => 'Marchandises',
|
||||||
|
'model' => 'marchandise',
|
||||||
|
'bgClass' => 'bg-green-light',
|
||||||
|
])
|
||||||
|
@endif
|
||||||
|
|
||||||
@include('load.basket')
|
@include('load.basket')
|
||||||
|
|
||||||
@push('js')
|
@push('js')
|
||||||
@@ -38,10 +47,9 @@
|
|||||||
'offer_id': offer_id,
|
'offer_id': offer_id,
|
||||||
'quantity': quantity,
|
'quantity': quantity,
|
||||||
};
|
};
|
||||||
$.post('{{ route("Shop.Basket.getPrice") }}', data, function(data) {
|
$.post('{{ route('Shop.Basket.getPrice') }}', data, function(data) {
|
||||||
$('#' + model + '-price').html(data);
|
$('#' + model + '-price').html(data);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
@endpush
|
@endpush
|
||||||
|
|||||||
Reference in New Issue
Block a user