diff options
| author | thomas <noreply@maennchen1.de> | 2016-06-14 13:30:15 +0000 |
|---|---|---|
| committer | thomas <noreply@maennchen1.de> | 2016-06-14 13:30:15 +0000 |
| commit | ac3b2263a4a985f40a1d16805816185c7cd00984 (patch) | |
| tree | b7a5946cef03ac526603dc5f8ba48ab853defd95 /views/mods/mod_scaleprice | |
| parent | f4ff207672485b56a72df1d1a74300225260f5a2 (diff) | |
- optionale Produktanzeige für eingeloggte Benutzer
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5548 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_scaleprice')
| -rw-r--r-- | views/mods/mod_scaleprice/product_bottom.phtml | 74 |
1 files changed, 42 insertions, 32 deletions
diff --git a/views/mods/mod_scaleprice/product_bottom.phtml b/views/mods/mod_scaleprice/product_bottom.phtml index 44618d0..0bca756 100644 --- a/views/mods/mod_scaleprice/product_bottom.phtml +++ b/views/mods/mod_scaleprice/product_bottom.phtml @@ -7,39 +7,49 @@ ?>
<div class="wpsg_mod_scaleprice_producttemplate">
- <?php if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_QUANTITY) { ?>
- <?php echo __('Das Produkt hat einen gestaffelten Preis, dieser ergibt sich Anhand der Menge wie folgt:', 'wpsg'); ?><br />
- <?php } else if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_WEIGHT) { ?>
- <?php echo __('Das Produkt hat einen gestaffelten Preis, dieser ergibt sich Anhand des Gewichts wie folgt:', 'wpsg'); ?><br />
- <?php } ?>
- <ul>
-
- <?php if ($this->view['wpsg_mod_scaleprice']['typ'] != wpsg_mod_scaleprice::TYP_QUANTITY || $this->view['wpsg_mod_scaleprice']['scale'][0]['scale'] != '1') { ?>
- <li>
- <?php echo __('Bis ', 'wpsg'); ?>
- <?php if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_QUANTITY) { ?>
- <?php echo wpsg_ff($this->view['wpsg_mod_scaleprice']['scale'][0]['scale'], __('Stück', 'wpsg')); ?>
- <?php } else if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_WEIGHT) { ?>
- <?php echo wpsg_ff($this->view['wpsg_mod_scaleprice']['scale'][0]['scale'], $this->get_option('wpsg_mod_weight_unit')); ?>
- <?php } ?>
- <?php echo __(' kostet das Produkt ', 'wpsg'); ?>
- <?php echo wpsg_ff($this->view['wpsg_mod_scaleprice']['base'], $this->get_option('wpsg_currency')); ?> <?php echo __('je Stück', 'wpsg'); ?>
- <?php $this->callMod('wpsg_mod_fuellmenge', 'renderPriceInfo', array($this->view['wpsg_mod_scaleprice']['base'], $this->view['data']['fmenge'], $this->view['data']['feinheit'])); ?>
- </li>
+ <?php /* Abfrage Preisanzeige nur für eingeloggte Benutzer START */?>
+ <?php if (($this->callMod('wpsg_mod_kundenverwaltung', 'isLoggedIn') && ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '1')) || ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '0')) { ?>
+
+ <?php if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_QUANTITY) { ?>
+ <?php echo __('Das Produkt hat einen gestaffelten Preis, dieser ergibt sich Anhand der Menge wie folgt:', 'wpsg'); ?><br />
+ <?php } else if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_WEIGHT) { ?>
+ <?php echo __('Das Produkt hat einen gestaffelten Preis, dieser ergibt sich Anhand des Gewichts wie folgt:', 'wpsg'); ?><br />
<?php } ?>
-
- <?php foreach ((array)$this->view['wpsg_mod_scaleprice']['scale'] as $scale) { ?>
- <li>
- <?php echo __('Ab ', 'wpsg'); ?>
- <?php if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_QUANTITY) { ?>
- <?php echo wpsg_ff($scale['scale'], __('Stück', 'wpsg')); ?>
- <?php } else if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_WEIGHT) { ?>
- <?php echo wpsg_ff($scale['scale'], $this->get_option('wpsg_mod_weight_unit')); ?>
+ <ul>
+
+ <?php if ($this->view['wpsg_mod_scaleprice']['typ'] != wpsg_mod_scaleprice::TYP_QUANTITY || $this->view['wpsg_mod_scaleprice']['scale'][0]['scale'] != '1') { ?>
+ <li>
+ <?php echo __('Bis ', 'wpsg'); ?>
+ <?php if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_QUANTITY) { ?>
+ <?php echo wpsg_ff($this->view['wpsg_mod_scaleprice']['scale'][0]['scale'], __('Stück', 'wpsg')); ?>
+ <?php } else if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_WEIGHT) { ?>
+ <?php echo wpsg_ff($this->view['wpsg_mod_scaleprice']['scale'][0]['scale'], $this->get_option('wpsg_mod_weight_unit')); ?>
+ <?php } ?>
+ <?php echo __(' kostet das Produkt ', 'wpsg'); ?>
+ <?php echo wpsg_ff($this->view['wpsg_mod_scaleprice']['base'], $this->get_option('wpsg_currency')); ?> <?php echo __('je Stück', 'wpsg'); ?>
+ <?php $this->callMod('wpsg_mod_fuellmenge', 'renderPriceInfo', array($this->view['wpsg_mod_scaleprice']['base'], $this->view['data']['fmenge'], $this->view['data']['feinheit'])); ?>
+ </li>
+ <?php } ?>
+
+ <?php foreach ((array)$this->view['wpsg_mod_scaleprice']['scale'] as $scale) { ?>
+ <li>
+ <?php echo __('Ab ', 'wpsg'); ?>
+ <?php if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_QUANTITY) { ?>
+ <?php echo wpsg_ff($scale['scale'], __('Stück', 'wpsg')); ?>
+ <?php } else if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_WEIGHT) { ?>
+ <?php echo wpsg_ff($scale['scale'], $this->get_option('wpsg_mod_weight_unit')); ?>
+ <?php } ?>
+ <?php echo __(' kostet das Produkt ', 'wpsg'); ?>
+ <?php echo wpsg_ff($scale['value'], $this->get_option('wpsg_currency')); ?> <?php echo __('je Stück', 'wpsg'); ?>
+ <?php $this->callMod('wpsg_mod_fuellmenge', 'renderPriceInfo', array($scale['value'], $this->view['data']['fmenge'] , $this->view['data']['feinheit'])); ?>
+ </li>
<?php } ?>
- <?php echo __(' kostet das Produkt ', 'wpsg'); ?>
- <?php echo wpsg_ff($scale['value'], $this->get_option('wpsg_currency')); ?> <?php echo __('je Stück', 'wpsg'); ?>
- <?php $this->callMod('wpsg_mod_fuellmenge', 'renderPriceInfo', array($scale['value'], $this->view['data']['fmenge'] , $this->view['data']['feinheit'])); ?>
- </li>
+ </ul>
+ <?php }else{?>
+ <?php if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_QUANTITY) { ?>
+ <?php echo __('Das Produkt hat einen gestaffelten Preis, dieser ergibt sich Anhand der Menge. Für weitere Informationen loggen Sie sich bitte ein.', 'wpsg'); ?><br />
+ <?php } else if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_WEIGHT) { ?>
+ <?php echo __('Das Produkt hat einen gestaffelten Preis, dieser ergibt sich Anhand des Gewichts. Für weitere Informationen loggen Sie sich bitte ein.', 'wpsg'); ?><br />
<?php } ?>
- </ul>
+ <?php } /* Abfrage Preisanzeige nur für eingeloggte Benutzer ENDE */?>
</div>
\ No newline at end of file |
