User Order all Margins / Checkout

This commit is contained in:
Kevin Adametz 2021-01-22 15:54:51 +01:00
parent a96d7d5c77
commit 224bf9e951
92 changed files with 3551 additions and 561 deletions

View file

@ -82,6 +82,10 @@
min-width: 4em;
display: inline-block;
}
.no-border-top{
border-top: none !important;
padding-top: 0.125rem !important;
}
</style>
<div id="cartContent">
@ -99,7 +103,7 @@
Einzelpreis
</div>
<div class="col-6 col-sm-3 col-md-3 text-right">
Anzahl
Anzahl/Preis
</div>
</div>
</div>
@ -129,7 +133,6 @@
</div>
<div class="options">
<a href="#" class="auto-delete-product remove_item_form_cart product-tooltip" data-row-id="{{$row->rowId}}" data-product-id="{{ $product->id }}"><i class="fa fa-times"></i> Artikel entfernen</a>
{{--
@if(!$row->options->comp)
@else
@ -145,7 +148,7 @@
</div>
<div class="col-6 col-sm-3 col-md-2 text-left font-semi-bold price-single">
<div class="no-line-break">{{ Yard::instance('shopping')->rowPriceNet($row, 3) }} &euro;</div>
<div class="no-line-break">{{ Yard::instance('shopping')->rowPriceNet($row, 3) }} &euro;*</div>
</div>
<div class="col-6 col-sm-3 col-md-3 quantity">
@ -159,7 +162,7 @@
--}}
</div>
<div class="price-total text-right">
<div class="no-line-break">{{ Yard::instance('shopping')->rowSubtotalNet($row) }} &euro;</div>
<div class="no-line-break">{{ Yard::instance('shopping')->rowSubtotalNet($row) }} &euro;*</div>
</div>
</div>
@ -171,6 +174,8 @@
<div class="clearfix"></div>
</div>
{{ Yard::instance('shopping')->calculateMargins() }}
<!-- / Shopping cart table -->
<div class="d-flex flex-wrap justify-content-between pb-4">
<div class="mt-2">
@ -183,34 +188,97 @@
<table class="table">
<tbody>
<tr>
<td class="text-left" style="border-top:none;">Zwischensumme:</td>
<td style="border-top:none;">{{ Yard::instance('shopping')->subtotal() }} </td>
<td class="text-left no-border-top">Zwischensumme:</td>
<td class="no-border-top">
{{ Yard::instance('shopping')->subtotal(null, null, null, false) }} *
</td>
</tr>
@if(Yard::instance('shopping')->getYardMargin() && Yard::instance('shopping')->getYardMargin()->isMargin())
@foreach(Yard::instance('shopping')->getYardMargin()->items as $item)
<tr>
<td class="text-left">Staffelrabatt
<br>ab {{ $item->getFormatted('price_from') }} / {{ $item->getFormatted('trading_margin') }}% :</td>
<td>
- {{ $item->getFormatted('value_margin') }} *
</td>
</tr>
@endforeach
@endif
@if(Yard::instance('shopping')->getYardCommission() && Yard::instance('shopping')->getYardCommission()->isCommission())
<tr>
<td class="text-left">Einzelrabatt:</td>
<td>
- {{ Yard::instance('shopping')->getYardCommission()->getFormatted('single_value_commission') }} *
</td>
</tr>
@endif
<tr>
<td class="text-left"><strong>Summe (Netto):</strong></td>
<td>
<strong>{{ Yard::instance('shopping')->subtotal() }} *</strong>
</td>
</tr>
@if(Yard::instance('shopping')->getYardMargin() && Yard::instance('shopping')->getYardMargin()->net_partner_commission > 0)
<tr>
<td class="text-left"><em>Provision Vertriebspartern:</em></td>
<td>
<em>{{ Yard::instance('shopping')->getYardMargin()->getFormatted('net_partner_commission') }} *</em>
</td>
</tr>
@endif
<tr>
<td class="text-left">Lieferland:</td>
<td>{{ Yard::instance('shopping')->getShippingCountryName() }}</td>
<td>
{{ Yard::instance('shopping')->getShippingCountryName() }}
</td>
</tr>
<tr>
<td class="text-left">Versandkosten:</td>
<td>
{{ Yard::instance('shopping')->shippingNet() }}
<td class="text-left no-border-top">Versandkosten:</td>
<td class="no-border-top">
{{ Yard::instance('shopping')->shippingNet() }} *
</td>
</tr>
<tr>
<td class="text-left">Summe ohne MwSt:</td>
<td>
{{ Yard::instance('shopping')->subtotalWithShipping() }}
{{ Yard::instance('shopping')->subtotalWithShipping() }} *
</td>
</tr>
<tr>
<td class="text-left">zzgl. MwSt:</td>
<td>{{ Yard::instance('shopping')->taxWithShipping() }} </td>
<td class="text-left no-border-top">zzgl. MwSt:</td>
<td class="no-border-top">
{{ Yard::instance('shopping')->taxWithShipping() }}
</td>
</tr>
@if(Yard::instance('shopping')->getPaymentCredit())
<tr>
<td class="text-left"><strong>Summe (Brutto):</strong></td>
<td>
<strong>{{ Yard::instance('shopping')->totalWithShippingWithoutCredit() }} </strong>
</td>
</tr>
<tr>
<td class="text-left"><strong>Gesamtsumme Brutto:</strong></td>
<td><strong>{{ Yard::instance('shopping')->totalWithShipping() }} </strong></td>
<td class="text-left no-border-top">aus Guthaben (Brutto):</td>
<td class="no-border-top">
- {{ Yard::instance('shopping')->totalfromCredit() }}
</td>
</tr>
@endif
<tr>
<td class="text-left"><strong>Gesamtsumme (Brutto):</strong></td>
<td>
<strong>{{ Yard::instance('shopping')->totalWithShipping() }} </strong>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="2"><em>* Nettobeträge</em></td>
</tr>
</tfoot>
</table>
</div>
@ -221,7 +289,7 @@
<button type="submit" class="btn btn-secondary"><i class="ion ion-ios-redo"></i> bestätigen und weiter zur Kasse</button>
</div>
<br><br>
<em class="small text-center"> <i class="fa fa-lock"></i> Du wirst auf unseren checkout Server weitergeletet, die Verbindung ist SSL verschlüsselt.</em>
<em class="small text-center"> <i class="fa fa-lock"></i> Du wirst auf unseren checkout weitergeletet, die Verbindung ist SSL verschlüsselt.</em>
@endif
@endif