summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorjlbeer <noreply@maennchen1.de>2026-09-18 14:49:50 +0200
committerjlbeer <noreply@maennchen1.de>2026-09-18 14:49:50 +0200
commit52e59400a922245268ca61819430041e40d63ac3 (patch)
tree185978c4ed179a541a722d12ed995e45b6fc3650 /views
parentfc78e798611b1ae2981dfba33bc8d4b043fab639 (diff)
- Kundenbudget wird bei Zahlvariantenauswahl angezeigt
Diffstat (limited to 'views')
-rw-r--r--views/css/frontend.css1
-rw-r--r--views/warenkorb/checkout2.phtml26
2 files changed, 22 insertions, 5 deletions
diff --git a/views/css/frontend.css b/views/css/frontend.css
index 2abe5bd..257f487 100644
--- a/views/css/frontend.css
+++ b/views/css/frontend.css
@@ -175,6 +175,7 @@ input.wpsg_error { border-color:red !important; border:1px solid red; }
.shippay_wrap .shippay_item_wrap .shippay_hint { display:none; margin-top:-5px; padding-bottom:20px; font-family:Arial; font-size:11px; color:#3F3F3F; }
.shippay_wrap .shippay_active, .shippay_wrap .shippay_item_wrap:hover { background-color:#F9F9F9; }
.shippay_wrap .shippay_active .shippay_hint { display:block; padding-right:8px; }
+.shippay_wrap .shippay_active .shippay_hint .shippay_error { color:#ff0000; font-size:12px; font-weight:bold; }
.shippay_wrap .shippay_item_wrap .wpsg_payship_name { display:table-cell; vertical-align:middle; font-size:12px; height:64px; }
.shippay_wrap .shippay_active .wpsg_payship_name { font-weight:bold; }
.shippay_wrap .shippay_item_wrap:last-child { border-bottom:1px solid #DFDFDF; }
diff --git a/views/warenkorb/checkout2.phtml b/views/warenkorb/checkout2.phtml
index 1f47bcb..718614a 100644
--- a/views/warenkorb/checkout2.phtml
+++ b/views/warenkorb/checkout2.phtml
@@ -64,13 +64,13 @@
<div class="shippay_item_wrap">
<input <?php echo (($this->view['basket']['checkout']['payment'] == $p['id'] || sizeof($this->view['arPayment']) == 1)?'checked="checked"':''); ?> type="radio" value="<?php echo $p['id']; ?>" name="wpsg[checkout][payment]" id="payment_<?php echo $p['id']; ?>" />
-
+
<div class="wpsg_payship_name"><?php echo __($p['name'], 'wpsg'); ?></div>
-
+
<?php if (wpsg_isSizedString($p['logo'])) { ?>
<img class="wpsg_payship_logo" src="<?php echo $p['logo']; ?>" alt="<?php echo $p['name']; ?>" />
<?php } ?>
-
+
<?php if ((isset($p['hint']) && trim($p['hint']) != '') || wpsg_getFloat($p['price']) > 0) { ?>
<div id="payment_<?php echo $p['id']; ?>_hint" class="shippay_hint">
<?php if ($p['price'] > 0) { ?>
@@ -79,9 +79,25 @@
<?php echo $this->replaceUniversalPlatzhalter(__($p['hint'], 'wpsg')); ?>
</div>
<?php } ?>
-
+
+ <?php if ($p['id'] == 1001) {
+ $k_id = wpsg_getInt($this->view['basket']['checkout']['id']);
+ if ($k_id > 0) {
+ $kunde = $this->cache->loadKunden($k_id);
+ ?>
+ <div class="shippay_hint">
+ <?php echo __('Verbleibendes Budget', 'wpsg'); ?>:
+ <?php echo wpsg_ff($kunde['budget'], $this->get_option('wpsg_currency')); ?>
+ <br />
+ <?php if (wpsg_ff($kunde['budget']) > wpsg_ff($this->view['basket']['sum']['preis_gesamt_brutto'])) { ?>
+ <p class="shippay_error"><?php echo __('Ihr Budget reicht für diese Bestellung nicht aus!', 'wpsg'); ?></p>
+ <?php } ?>
+ </div>
+ <?php }
+ } ?>
+
<div class="shippay_checkmark"></div>
-
+
</div>
<?php } ?>
</div>