[WIP] Finish the order process
This commit is contained in:
@@ -2,4 +2,44 @@
|
||||
@foreach ($articles as $product_name => $article)
|
||||
@include('Shop.Articles.partials.article_rows')
|
||||
@endforeach
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$('.basket').click(function() {
|
||||
var offer_id = $(this).data('id');
|
||||
var quantity = 1;
|
||||
var data = {
|
||||
'offer_id': offer_id,
|
||||
'quantity': quantity,
|
||||
};
|
||||
|
||||
var buttons = {
|
||||
cancel: {
|
||||
label: '{{ __('Continuer mes achats') }}',
|
||||
className: 'btn-secondary'
|
||||
},
|
||||
confirm: {
|
||||
label: '{{ __('Commander') }}',
|
||||
className: 'btn-success',
|
||||
callback: function() {
|
||||
// submitModal(form_id);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
openModal(
|
||||
'Ajout dans le panier',
|
||||
'basket-form',
|
||||
"{{ route('Shop.Basket.modalBasket') }}/" + offer_id + '/' + quantity,
|
||||
"{{ route('Shop.Orders.order') }}",
|
||||
"",
|
||||
false,
|
||||
true,
|
||||
buttons,
|
||||
"refreshBasketTop()",
|
||||
);
|
||||
});
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
@@ -38,3 +38,5 @@
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
|
||||
@include('load.layout.modal')
|
||||
Reference in New Issue
Block a user