From e486bed6ea2a13e97cfc78a03f30c0999d92eb26 Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Sat, 20 Jul 2019 15:17:02 +0000 Subject: - Backup Wertgutscheine git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7486 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/warenkorb/basket.phtml | 53 ++++++++++++++++++++++++++---------------- views/warenkorb/overview.phtml | 44 ++++++++++++++++++++++------------- 2 files changed, 61 insertions(+), 36 deletions(-) (limited to 'views/warenkorb') diff --git a/views/warenkorb/basket.phtml b/views/warenkorb/basket.phtml index 0345a85..d3641f1 100644 --- a/views/warenkorb/basket.phtml +++ b/views/warenkorb/basket.phtml @@ -5,11 +5,15 @@ */ //wpsg_debug($this->view['basket']); + //wpsg_debug($this->view['basket']['arCalculation']); //wpsg_debug($_SESSION); //wpsg_debug($this->arShipping); //wpsg_debug(__('Deutschland', 'wpsg')); + if ($this->getFrontendTaxView() === WPSG_BRUTTO) $display_brutto_netto = 'brutto'; + else $display_brutto_netto = 'netto'; + ?>
@@ -140,29 +144,36 @@ callMods('basket_row_afterproducts', array(&$p, $i)); ?> - view['basket']['gs'])) { $bLine = true; ?> + + + + view['basket']['arCalculation']['voucher'])) { $bLine = true; ?> -
-
- - view['basket']['gs']['code'] != '')? '('.$this->view['basket']['gs']['code'].')':'' ?> -
- view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?> -
- -
view['basket']['arCalculation']['voucher'] as $gs) { ?> + +
+
+ + +
+ view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?> +
+ +
get_option('wpsg_currency')); - echo '-'.wpsg_ff($this->view['basket']['sum']['gs'], $this->get_option('wpsg_currency')); + if (strpos($gs['set'], '%') !== false) { + + echo '('.wpsg_ff(wpsg_tf($gs['set']), '%').')'; + + } + + ?>
- if (strpos($this->view['basket']['arCalculation']['voucher'][0]['set'], '%') !== false) { - - echo '('.wpsg_ff(wpsg_tf($this->view['basket']['arCalculation']['voucher'][0]['set']), '%').')'; - - } - - ?>
+
-
+ @@ -373,7 +384,9 @@
- + + callMod('wpsg_mod_gutschein', 'basket_row_end_coupon'); ?> + callMods('basket_row_end', array(&$this->view)); ?>
diff --git a/views/warenkorb/overview.phtml b/views/warenkorb/overview.phtml index 4e5453c..b860b89 100644 --- a/views/warenkorb/overview.phtml +++ b/views/warenkorb/overview.phtml @@ -6,6 +6,9 @@ */ //wpsg_debug($this->view['basket']); + + if ($this->getFrontendTaxView() === WPSG_BRUTTO) $display_brutto_netto = 'brutto'; + else $display_brutto_netto = 'netto'; ?>
@@ -267,25 +270,31 @@
- view['basket']['gs'])) { $bLine = true; ?> -
-
- view['basket']['gs']['code'] != '')? '('.$this->view['basket']['gs']['code'].')':'' ?> -
-
view['basket']['sum']['gs'], $this->get_option('wpsg_currency')); - - if (strpos($this->view['basket']['arCalculation']['voucher'][0]['set'], '%') !== false) { - - echo '('.wpsg_ff(wpsg_tf($this->view['basket']['arCalculation']['voucher'][0]['set']), '%').')'; + view['basket']['arCalculation']['voucher'])) { $bLine = true; ?> + + view['basket']['arCalculation']['voucher'] as $gs) { ?> + +
+
+ +
+
get_option('wpsg_currency')); - } + if (strpos($gs['set'], '%') !== false) { + + echo '('.wpsg_ff(wpsg_tf($gs['set']), '%').')'; + + } - ?>
-
+ ?>
+
+ + + - +
view['basket']['sum']['preis_rabatt']) && wpsg_tf($this->view['basket']['sum']['preis_rabatt']) > 0) { ?>
@@ -460,7 +469,10 @@
+ callMod('wpsg_mod_gutschein', 'overview_row_end_coupon'); ?> + callMods('overview_row_end', array(&$this->view)); ?> +

-- cgit v1.2.3