summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2019-03-05 06:31:15 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2019-03-05 06:31:15 +0000
commit7ee2a49499d72f788114bce154f3a3512a4db55a (patch)
tree3859f53f4062d34ff76e9ac09ab8c93e87c051db /views
parent1487b11d583c90cfad0aa04e71775d8efe9929e0 (diff)
- Preisumschaltung / Task #647
- Abwärtskompatibilität damit alte Produkttemplates nicht angepasst werden müssen git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7330 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views')
-rw-r--r--views/produkttemplates/standard_redirect.phtml6
1 files changed, 3 insertions, 3 deletions
diff --git a/views/produkttemplates/standard_redirect.phtml b/views/produkttemplates/standard_redirect.phtml
index 392e997..58bdad2 100644
--- a/views/produkttemplates/standard_redirect.phtml
+++ b/views/produkttemplates/standard_redirect.phtml
@@ -88,11 +88,11 @@
<?php echo __('Stückpreis:', 'wpsg'); ?>
<?php $oldPrice = $this->view['oProduct']->getOldPrice(); ?>
- <?php if ($oldPrice !== false && $oldPrice != $this->view['oProduct']->getPrice()) { ?>
- <span class="wpsg_mod_productview_price wpsg_mod_productview_current"><?php echo wpsg_ff($this->view['oProduct']->getPrice(), $this->get_option('wpsg_currency')); ?></span>
+ <?php if ($oldPrice !== false && $oldPrice != $this->view['oProduct']->getPrice($this->view['data']['product_key'])) { ?>
+ <span class="wpsg_mod_productview_price wpsg_mod_productview_current"><?php echo wpsg_ff($this->view['oProduct']->getPrice($this->view['data']['product_key']), $this->get_option('wpsg_currency')); ?></span>
<span class="wpsg_mod_productview_oldprice"><?php echo wpsg_ff($oldPrice, $this->get_option('wpsg_currency')); ?></span>
<?php } else { ?>
- <span class="wpsg_mod_productview_price"><?php echo wpsg_ff($this->view['oProduct']->getPrice(), $this->get_option('wpsg_currency')); ?></span>
+ <span class="wpsg_mod_productview_price"><?php echo wpsg_ff($this->view['oProduct']->getPrice($this->view['data']['product_key']), $this->get_option('wpsg_currency')); ?></span>
<?php } ?>
</div>