Country Prices | Homeparty | Shop | Order
This commit is contained in:
parent
51d81d8ec6
commit
39d1e93416
284 changed files with 784 additions and 216 deletions
|
|
@ -264,16 +264,28 @@
|
|||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{!! Form::hidden('billing_state', $shopping_user->billing_state) !!}
|
||||
{!! Form::hidden('billing_country_id', \App\Services\Shop::getShippingCountryCountryId($shopping_user->billing_state)) !!}
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12">
|
||||
<label class="mt-0 fs-14 fw-400" for="billing_state">Land *</label>
|
||||
<label class="mt-0 fs-14 fw-400" for="billing_state">Land *</label>
|
||||
<div class="text-normal">{{ $shopping_user->billing_country->getLocated() }}</div>
|
||||
<span class="info-small">Das Land kann nicht mehr geändert werden.</span>
|
||||
</div>
|
||||
</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" required>
|
||||
{!! HTMLHelper::getCountriesForShipping($shopping_user->billing_state) !!}
|
||||
</select>
|
||||
<input type="hidden" name="billing_country_id" value="{{ \App\Services\Shop::getShippingCountryCountryId($shopping_user->billing_state)}}">
|
||||
<span class="info-small" id="show_shipping_country_info">Bei der Änderung des Lieferlandes werden die Versandkosten neu berechnet.</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div> --}}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12">
|
||||
|
|
@ -308,8 +320,7 @@
|
|||
{!! Form::hidden('billing_phone', $shopping_user->billing_phone) !!}
|
||||
{!! Form::hidden('billing_email', $shopping_user->billing_email) !!}
|
||||
{!! Form::hidden('billing_state', $shopping_user->billing_state) !!}
|
||||
{!! Form::hidden('billing_country_id', \App\Services\Shop::getShippingCountryCountryId($shopping_user->billing_state)) !!}
|
||||
|
||||
{!! Form::hidden('billing_country_id', $shopping_user->billing_country_id) !!}
|
||||
<div class="row">
|
||||
<style>
|
||||
.ex-small {
|
||||
|
|
@ -395,6 +406,19 @@
|
|||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@if($shopping_user->is_from !== 'homeparty')
|
||||
@if($shopping_user->is_from === 'membership' || $shopping_user->is_from === 'wizard')
|
||||
{!! Form::hidden('same_as_billing', $shopping_user->same_as_billing) !!}
|
||||
<div class="row" style="display: none">
|
||||
<div class="col-lg-12 nomargin clearfix">
|
||||
<hr>
|
||||
<label class="mt-0 fs-14 fw-500 checkbox pull-left disabled">
|
||||
{!! Form::checkbox('same_as_billing', 1, $shopping_user->same_as_billing, ['id'=>'shipswitch', 'disabled'=>true]) !!}
|
||||
<i></i> <span class="weight-400">Abweichende Lieferadresse</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
<div class="row" @if($is_from === 'user_order') style="display: none" @endif>
|
||||
<div class="col-lg-12 nomargin clearfix">
|
||||
<hr>
|
||||
|
|
@ -404,6 +428,8 @@
|
|||
</label>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
</fieldset>
|
||||
<!-- /BILLING -->
|
||||
|
||||
|
|
@ -507,7 +533,6 @@
|
|||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@if($is_from === 'user_order')
|
||||
{!! Form::hidden('shipping_state', $shopping_user->shipping_state) !!}
|
||||
{!! Form::hidden('shipping_country_id', \App\Services\Shop::getShippingCountryCountryId($shopping_user->shipping_state)) !!}
|
||||
|
|
@ -519,7 +544,21 @@
|
|||
</div>
|
||||
</div>
|
||||
@else
|
||||
<div class="row">
|
||||
{!! Form::hidden('shipping_state', $shopping_user->shipping_state) !!}
|
||||
{!! Form::hidden('shipping_country_id', \App\Services\Shop::getShippingCountryCountryId($shopping_user->shipping_state)) !!}
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12">
|
||||
<label class="mt-0 fs-14 fw-400" for="shipping_state">Lieferland *</label>
|
||||
<div class="text-normal">{{ $shopping_user->shipping_country->getLocated() }}</div>
|
||||
@if($is_from === 'membership' || $is_from === 'wizard')
|
||||
<span class="info-small">Das Lieferland kann nur im Salescenter geändert werden.</span>
|
||||
@else
|
||||
<span class="info-small">Das Lieferland kann nicht geändert werden.</span>
|
||||
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
{{-- <div class="row">
|
||||
<div class="col-md-12 col-sm-12">
|
||||
<input type="hidden" name="shipping_country_id" value="{{ \App\Services\Shop::getShippingCountryCountryId($shopping_user->shipping_state) }}">
|
||||
<label class="mt-0 fs-14 fw-400" for="shipping_state">Lieferland *</label>
|
||||
|
|
@ -529,6 +568,7 @@
|
|||
<span class="info-small">Bei der Änderung des Landes werden die Versandkosten neu berechnet.</span>
|
||||
</div>
|
||||
</div>
|
||||
--}}
|
||||
@endif
|
||||
|
||||
<div class="row">
|
||||
|
|
@ -815,6 +855,7 @@
|
|||
<span class="pull-left small">Versandkosten:</span>
|
||||
</div>
|
||||
@else
|
||||
|
||||
<div class="clearfix mb-2">
|
||||
<span class="pull-right text-right">
|
||||
<div class="no-line-break">{{ Yard::instance('shopping')->total() }} €</div>
|
||||
|
|
@ -824,11 +865,8 @@
|
|||
</span>
|
||||
<strong class="pull-left">Zwischensumme:</strong>
|
||||
</div>
|
||||
|
||||
@if($shopping_user->is_from !== 'homeparty')
|
||||
|
||||
<hr class="mt-4 mb-4">
|
||||
|
||||
<div class="clearfix mb-2">
|
||||
<span class="pull-right small text-right">
|
||||
<div class="no-line-break">{{ Yard::instance('shopping')->shipping() }} €</div>
|
||||
|
|
@ -847,7 +885,6 @@
|
|||
<span class="pull-left small">Lieferland:</span>
|
||||
</div>
|
||||
|
||||
|
||||
<hr class="mt-4 mb-4">
|
||||
|
||||
<div class="clearfix mb-2" style="font-size: 90%">
|
||||
|
|
@ -869,9 +906,20 @@
|
|||
</span>
|
||||
<span class="pull-left small"> zzgl. {{-- Yard::getTaxRate() --}} MwSt:</span>
|
||||
</div>
|
||||
<hr />
|
||||
|
||||
<div class="clearfix">
|
||||
<span class="pull-right size-20 text-right">
|
||||
<strong><div class="no-line-break">{{ Yard::instance('shopping')->totalWithShipping() }} €</div></strong>
|
||||
@if(Yard::instance('shopping')->isPriceCurrency())
|
||||
<span class="small">~{{ Yard::instance('shopping')->getCurrencyByKey('totalWithShipping') }} {{ Yard::instance('shopping')->getPriceCurrencyUnit() }} </span>
|
||||
@endif
|
||||
</span>
|
||||
<strong class="pull-left">Gesamtsumme:</strong>
|
||||
</div>
|
||||
@else
|
||||
<hr class="mt-4 mb-4">
|
||||
|
||||
@if(!$shopping_data['user_tax_free'])
|
||||
<div class="clearfix mb-2" style="font-size: 90%">
|
||||
<span class="pull-right small text-right">
|
||||
<div class="no-line-break">{!! $shopping_data['shop_price_net'] !!} €</div>
|
||||
|
|
@ -881,6 +929,7 @@
|
|||
</span>
|
||||
<span class="pull-left small">Summe ohne MwSt:</span>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="clearfix mb-2" style="font-size: 90%">
|
||||
<span class="pull-right small text-right">
|
||||
|
|
@ -891,18 +940,19 @@
|
|||
</span>
|
||||
<span class="pull-left small"> zzgl. {{-- Yard::getTaxRate() --}} MwSt:</span>
|
||||
</div>
|
||||
@endif
|
||||
<hr />
|
||||
<hr />
|
||||
|
||||
<div class="clearfix">
|
||||
<span class="pull-right size-20 text-right">
|
||||
<strong><div class="no-line-break">{{ Yard::instance('shopping')->totalWithShipping() }} €</div></strong>
|
||||
@if(Yard::instance('shopping')->isPriceCurrency())
|
||||
<span class="small">~{{ Yard::instance('shopping')->getCurrencyByKey('totalWithShipping') }} {{ Yard::instance('shopping')->getPriceCurrencyUnit() }} </span>
|
||||
@endif
|
||||
</span>
|
||||
<strong class="pull-left">Gesamtsumme:</strong>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
<span class="pull-right size-20 text-right">
|
||||
<div class="no-line-break">{!! $shopping_data['shop_price'] !!} €</div>
|
||||
@if(Yard::instance('shopping')->isPriceCurrency())
|
||||
<span class="small">~{{ Yard::instance('shopping')->convertCurrency($shopping_data['shop_price']) }} {{ Yard::instance('shopping')->getPriceCurrencyUnit() }} </span>
|
||||
@endif
|
||||
</span>
|
||||
<strong class="pull-left">Gesamtsumme:</strong>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
<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>
|
||||
|
|
@ -953,10 +1003,12 @@
|
|||
jQuery("#shipswitch").bind("click", function() {
|
||||
jQuery('#shipping').slideToggle(200, function() {
|
||||
// scroll down to shipping area.
|
||||
if($('#billing_state').val() !== $('#shipping_state').val()){
|
||||
/*
|
||||
if($('#billing_state').val() !== $('#shipping_state').val()){
|
||||
$('input[name="selected_country"]').val('change');
|
||||
$('form#checkout_card_final').submit();
|
||||
}
|
||||
*/
|
||||
if(jQuery('#shipping').is(":visible")) {
|
||||
_scrollTo('#shipping', 150);
|
||||
showShippingCountryFor('billing');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue