summaryrefslogtreecommitdiff
path: root/views/mods/mod_gutschein
diff options
context:
space:
mode:
Diffstat (limited to 'views/mods/mod_gutschein')
-rw-r--r--views/mods/mod_gutschein/basket_row_end.phtml27
1 files changed, 18 insertions, 9 deletions
diff --git a/views/mods/mod_gutschein/basket_row_end.phtml b/views/mods/mod_gutschein/basket_row_end.phtml
index 2d9b3ec..03e9d86 100644
--- a/views/mods/mod_gutschein/basket_row_end.phtml
+++ b/views/mods/mod_gutschein/basket_row_end.phtml
@@ -7,13 +7,22 @@
?>
<br />
<div class="basket_sum_row">
- <div class="codegs">
- <label class="codegsf" for="wpsg_gutschein_input"><?php echo __('Gutscheincode:', 'wpsg'); ?></label>
- </div>
- <div class="codegsl">
- <input id="wpsg_gutschein_input" class="wpsg_gutschein_input <?php echo ((in_array("gutschein", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" name="wpsg[gutschein]" value="" />
- </div>
- <div class="codegsr">
- <input class="wpsg_button wpsg_gutschein_add" type="submit" name="wpsg_gutschein_add" value="<?php echo '&nbsp;'.__('Einlösen', 'wpsg').'&nbsp;'; ?>" />
- </div>
+ <?php /* TODO: Kunden bereits über das Widget eingeloggt (Kundengruppenrabatt)? */ ?>
+ <?php if ($this->hasMod('wpsg_mod_discount') && ($this->get_option('wpsg_mod_discount_voucher') == 1)) { ?>
+
+ <?php echo __('Aufgrund einer Rabattaktion ist das Hinzufügen eines Gutscheines nicht möglich', 'wpsg'); ?>
+
+ <?php } else {?>
+
+ <div class="codegs">
+ <label class="codegsf" for="wpsg_gutschein_input"><?php echo __('Gutscheincode:', 'wpsg'); ?></label>
+ </div>
+ <div class="codegsl">
+ <input id="wpsg_gutschein_input" class="wpsg_gutschein_input <?php echo ((in_array("gutschein", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" name="wpsg[gutschein]" value="" />
+ </div>
+ <div class="codegsr">
+ <input class="wpsg_button wpsg_gutschein_add" type="submit" name="wpsg_gutschein_add" value="<?php echo '&nbsp;'.__('Einlösen', 'wpsg').'&nbsp;'; ?>" />
+ </div>
+
+ <?php }?>
</div> \ No newline at end of file