diff options
Diffstat (limited to 'views/warenkorb')
| -rw-r--r-- | views/warenkorb/basket.phtml | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/views/warenkorb/basket.phtml b/views/warenkorb/basket.phtml index 7169a18..0342a18 100644 --- a/views/warenkorb/basket.phtml +++ b/views/warenkorb/basket.phtml @@ -232,10 +232,10 @@ <?php } ?>
</div>
<div class="value">
- <?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') {
+ <?php if ((sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') && isset($this->view['basket']['arCalculation']['shipping'][0]['tax_key'])) {
$shipping_tax_key = $this->view['basket']['arCalculation']['shipping'][0]['tax_key'];
-
+
if ($shipping_tax_key === '0') {
echo __('anteilig', 'wpsg');
@@ -251,11 +251,15 @@ <div class="value">
<?php
- echo wpsg_ff($this->view['basket']['sum']['preis_shipping'], $this->get_option('wpsg_currency'));
+ if (isset($this->view['basket']['arCalculation']['shipping'][0]['tax_key'])) {
- if (strpos($this->view['basket']['arCalculation']['shipping'][0]['set'], '%') !== false) {
+ echo wpsg_ff($this->view['basket']['sum']['preis_shipping'], $this->get_option('wpsg_currency'));
- echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($this->view['basket']['arCalculation']['shipping'][0]['set']), '%').')</span>';
+ if (strpos($this->view['basket']['arCalculation']['shipping'][0]['set'], '%') !== false) {
+
+ echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($this->view['basket']['arCalculation']['shipping'][0]['set']), '%').')</span>';
+
+ }
}
@@ -282,7 +286,7 @@ <?php } ?>
</div>
<div class="value">
- <?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') {
+ <?php if ((sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') && isset($this->view['basket']['arCalculation']['payment'][0]['tax_key'])) {
$payment_tax_key = $this->view['basket']['arCalculation']['payment'][0]['tax_key'];
@@ -301,11 +305,15 @@ <div class="value">
<?php
- echo wpsg_ff($this->view['basket']['sum']['preis_payment'], $this->get_option('wpsg_currency'));
-
- if (strpos($this->view['basket']['arCalculation']['payment'][0]['set'], '%') !== false) {
-
- echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($this->view['basket']['arCalculation']['payment'][0]['set']), '%').')</span>';
+ if (isset($this->view['basket']['arCalculation']['payment'][0]['tax_key'])) {
+
+ echo wpsg_ff($this->view['basket']['sum']['preis_payment'], $this->get_option('wpsg_currency'));
+
+ if (strpos($this->view['basket']['arCalculation']['payment'][0]['set'], '%') !== false) {
+
+ echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($this->view['basket']['arCalculation']['payment'][0]['set']), '%').')</span>';
+
+ }
}
|
