diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2019-07-20 15:17:02 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2019-07-20 15:17:02 +0000 |
| commit | e486bed6ea2a13e97cfc78a03f30c0999d92eb26 (patch) | |
| tree | d9b55496c54f44aac74bde286760074157c815cd /views/warenkorb/overview.phtml | |
| parent | 275b7e8464767913a08a5acc4d0148954bb9738d (diff) | |
- Backup Wertgutscheine
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7486 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/warenkorb/overview.phtml')
| -rw-r--r-- | views/warenkorb/overview.phtml | 44 |
1 files changed, 28 insertions, 16 deletions
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';
?>
<div class="wpsg wpsg_overview">
@@ -267,25 +270,31 @@ <div class="overview_sum_wrap">
<?php $bLine = false; ?>
- <?php if (isset($this->view['basket']['gs'])) { $bLine = true; ?>
- <div class="overview_sum_row">
- <div class="title">
- <?php echo __('Gutschein', 'wpsg'); ?> <?php echo ($this->view['basket']['gs']['code'] != '')? '('.$this->view['basket']['gs']['code'].')':'' ?>
- </div>
- <div class="value"><?php
-
- echo '-'.wpsg_ff($this->view['basket']['sum']['gs'], $this->get_option('wpsg_currency'));
-
- if (strpos($this->view['basket']['arCalculation']['voucher'][0]['set'], '%') !== false) {
-
- echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($this->view['basket']['arCalculation']['voucher'][0]['set']), '%').')</span>';
+ <?php if (wpsg_isSizedArray($this->view['basket']['arCalculation']['voucher'])) { $bLine = true; ?>
+
+ <?php foreach ($this->view['basket']['arCalculation']['voucher'] as $gs) { ?>
+
+ <div class="overview_sum_row">
+ <div class="title">
+ <?php echo __('Gutschein', 'wpsg'); ?> <?php echo ($gs['code'] != '')? '('.$gs['code'].')':'' ?>
+ </div>
+ <div class="value"><?php
+
+ echo wpsg_ff($gs[$display_brutto_netto], $this->get_option('wpsg_currency'));
- }
+ if (strpos($gs['set'], '%') !== false) {
+
+ echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($gs['set']), '%').')</span>';
+
+ }
- ?></div>
- </div>
+ ?></div>
+ </div>
+
+ <?php } ?>
+
<?php } ?>
-
+
<div class="overview_sum_row">
<?php if (isset($this->view['basket']['sum']['preis_rabatt']) && wpsg_tf($this->view['basket']['sum']['preis_rabatt']) > 0) { ?>
<div class="title">
@@ -460,7 +469,10 @@ <div class="wpsg_spacer"></div>
<?php } ?>
+ <?php echo $this->callMod('wpsg_mod_gutschein', 'overview_row_end_coupon'); ?>
+
<?php $this->callMods('overview_row_end', array(&$this->view)); ?>
+
<div class="wpsg_spacer"></div>
<br />
|
