cart responsive, Checkout from cart
This commit is contained in:
parent
bde1095014
commit
fb27009339
17 changed files with 501 additions and 319 deletions
|
|
@ -98,6 +98,17 @@
|
|||
display: none;
|
||||
}
|
||||
|
||||
select.form-control:not([size]):not([multiple]) {
|
||||
height: 38px;
|
||||
color: #6f6f6f;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.info-small {
|
||||
font-size: 0.8em;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<section>
|
||||
|
|
@ -135,7 +146,11 @@
|
|||
|
||||
|
||||
<div class="m-checkout">
|
||||
{!! Form::open(['url' => route('checkout.checkout_card_final'), 'class' => 'row clearfix', 'id'=>'']) !!}
|
||||
{!! Form::open(['url' => route('checkout.checkout_card_final'), 'class' => 'row clearfix', 'id'=>'checkout_card_final']) !!}
|
||||
|
||||
{!! Form::hidden('selected_country') !!}
|
||||
{!! Form::hidden('is_for', $shopping_user->is_for) !!}
|
||||
{!! Form::hidden('is_from', $shopping_user->is_from) !!}
|
||||
|
||||
@if (\Session::has('elv-managemandate'))
|
||||
|
||||
|
|
@ -243,11 +258,12 @@
|
|||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12">
|
||||
<label class="mt-0 fs-14 fw-400" for="billing_state">Land *</label>
|
||||
<select id="billing_state" name="billing_state" class="form-control select2 required" disabled="true">
|
||||
{!! HTMLHelper::getCountriesForShipping(Yard::instance('shopping')->getShippingCountryId()) !!}
|
||||
<label class="mt-0 fs-14 fw-400" for="billing_state">Land * {{$shopping_user->billing_state}}</label>
|
||||
<select id="billing_state" name="billing_state" class="form-control required">
|
||||
{!! HTMLHelper::getCountriesForShipping($shopping_user->billing_state) !!}
|
||||
</select>
|
||||
<input type="hidden" name="billing_country_id" value="{{Yard::instance('shopping')->getShippingCountryCountryId()}}">
|
||||
<span class="info-small" id="show_shipping_country_info">Bei der Änderung des Versandlandes werden die Versandkosten neu berechnet.</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -398,11 +414,12 @@
|
|||
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12">
|
||||
<label class="mt-0 fs-14 fw-400" for="shipping_state">Land *</label>
|
||||
<select id="shipping_state" name="shipping_state" class="form-control select2 required" disabled="true">
|
||||
{!! HTMLHelper::getCountriesForShipping(Yard::instance('shopping')->getShippingCountryId()) !!}
|
||||
<label class="mt-0 fs-14 fw-400" for="shipping_state">Land * {{$shopping_user->shipping_state}}</label>
|
||||
<select id="shipping_state" name="shipping_state" class="form-control required">
|
||||
{!! HTMLHelper::getCountriesForShipping($shopping_user->shipping_state) !!}
|
||||
</select>
|
||||
<input type="hidden" name="shipping_country_id" value="{{Yard::instance('shopping')->getShippingCountryCountryId()}}">
|
||||
<span class="info-small">Bei der Änderung des Landes werden die Versandkosten neu berechnet.</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -681,9 +698,6 @@
|
|||
<button type="submit" class="btn btn-primary btn-lg btn-block size-18 btn-text-500 mt-4 faa-parent animated-hover"><i class="fa fa-mail-forward faa-horizontal"></i> Jetzt kaufen</button>
|
||||
<hr><p class="text-center" style="line-height: 1.2em;"><em class="small text-center"> <i class="fa fa-lock"></i> Sind alle Deine Angaben vollsätndig ausgefüllt, klicke auf "Jetzt kaufen" und Du wist zu unserem Zahlungsanbieter weitergeleitet, die Verbindung wird ist SSL verschlüsselt.</em></p>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -697,4 +711,90 @@
|
|||
<!-- /CART -->
|
||||
|
||||
|
||||
@endsection
|
||||
|
||||
@section('scripts')
|
||||
|
||||
<script>
|
||||
/** CHECKOUT
|
||||
** *********************** **/
|
||||
// New Account show|hide
|
||||
jQuery("#accountswitch").bind("click", function() {
|
||||
jQuery('#newaccount').slideToggle(200);
|
||||
});
|
||||
|
||||
|
||||
$('#billing_state').on('change', function (){
|
||||
$('input[name="selected_country"]').val('change');
|
||||
$('form#checkout_card_final').submit();
|
||||
});
|
||||
$('#shipping_state').on('change', function (){
|
||||
$('input[name="selected_country"]').val('change');
|
||||
$('form#checkout_card_final').submit();
|
||||
});
|
||||
function showShippingCountryFor($for){
|
||||
if($for === 'billing'){
|
||||
$('#show_shipping_country_info').show();
|
||||
}
|
||||
if($for === 'shipping'){
|
||||
$('#show_shipping_country_info').hide();
|
||||
}
|
||||
}
|
||||
// Shipping Address show|hide
|
||||
jQuery("#shipswitch").bind("click", function() {
|
||||
jQuery('#shipping').slideToggle(200, function() {
|
||||
// scroll down to shipping area.
|
||||
if(jQuery('#shipping').is(":visible")) {
|
||||
_scrollTo('#shipping', 150);
|
||||
showShippingCountryFor('shipping');
|
||||
}else{
|
||||
showShippingCountryFor('billing');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
if(!jQuery('#shipswitch').is(':checked')){
|
||||
jQuery('#shipping').show();
|
||||
showShippingCountryFor('shipping');
|
||||
|
||||
}else{
|
||||
showShippingCountryFor('billing');
|
||||
}
|
||||
|
||||
|
||||
jQuery('.quick-cart-box-close').on('click', function () {
|
||||
jQuery('.quick-cart-box').css('display', 'none');
|
||||
});
|
||||
|
||||
|
||||
function showCreditCardPayment(val){
|
||||
if(val === 'cc'){
|
||||
$('#creditcard-box-holder').show('slow');
|
||||
}else{
|
||||
$('#creditcard-box-holder').hide('slow');
|
||||
}
|
||||
|
||||
}
|
||||
showCreditCardPayment(jQuery('input[name="payment_method"]:checked').val());
|
||||
jQuery('input[name="payment_method"]').on('change', function () {
|
||||
showCreditCardPayment($(this).val());
|
||||
});
|
||||
|
||||
function showSEPAPayment(val){
|
||||
if(val === 'elv'){
|
||||
$('#sepa-box-holder').show('slow');
|
||||
}else{
|
||||
$('#sepa-box-holder').hide('slow');
|
||||
}
|
||||
|
||||
}
|
||||
showSEPAPayment(jQuery('input[name="payment_method"]:checked').val());
|
||||
jQuery('input[name="payment_method"]').on('change', function () {
|
||||
showSEPAPayment($(this).val());
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
@endsection
|
||||
Loading…
Add table
Add a link
Reference in a new issue