Promotion Frontend dynamic

This commit is contained in:
Kevin Adametz 2021-11-26 18:23:10 +01:00
parent c9e1545693
commit 1cc8e025a1
29 changed files with 551 additions and 163 deletions

View file

@ -18,6 +18,7 @@
{!! Form::open(['url' => route('web_promotion_store', $promotion_user->id), 'class' => 'form-horizontal form-prevent-multiple-submits', 'id' => 'user-promotion-form-validations']) !!}
<input type="hidden" name="load_url" value="{{ route('web_promotion_modal_load') }}">
<div class="layout-content">
@include('web.promotion._intro')
@ -29,8 +30,9 @@
@include('web.promotion._shipping')
@include('web.promotion._fairplay')
<section id="promotion_cart_holder">
@include('web.promotion._promotion_cart')
</section>
<section>
<div class="row">
@ -52,6 +54,8 @@
<script>
$(document).ready(function() {
var iqShoppingShopCart = IqPromotionShopCart.init();
var validator = $("#user-promotion-form-validations").validate({
submitHandler: function(form) {
$('.button-prevent-multiple-submits').attr('disabled', true);
@ -102,10 +106,6 @@
validator.element($(this));
});
$('.switcher-holder').on('click', function() {
$(this).find('.switcher-input').prop('checked', true);
});
var swiper = new Swiper(".mySwiper", {
slidesPerView: 1,
spaceBetween: 10,
@ -146,7 +146,6 @@
}
});
});
if ($('#shipping_address_switch').is(':checked')) {
$('#shipping_address').show();
} else {
@ -156,3 +155,7 @@
</script>
@endsection
@section('scripts')
<script src="{{ asset('/js/iq-promotion-shop-cart.js') }}?v=2{{ get_file_last_time('/js/iq-promotion-shop-cart.js') }}"></script>
@endsection