summaryrefslogtreecommitdiff
path: root/views/mods/mod_productview/productview.phtml
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2016-03-22 06:59:01 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2016-03-22 06:59:01 +0000
commitc14a7c20ec8c489a37412cebb524e367679f5a60 (patch)
tree4b6c5378e3d46ae13f7657054c24fcada65e6a06 /views/mods/mod_productview/productview.phtml
parent5dcc69c910adb6e390c7699de5d2bc87c2a54736 (diff)
- Switch
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5436 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_productview/productview.phtml')
-rw-r--r--views/mods/mod_productview/productview.phtml25
1 files changed, 21 insertions, 4 deletions
diff --git a/views/mods/mod_productview/productview.phtml b/views/mods/mod_productview/productview.phtml
index 10f7cf2..7b0e591 100644
--- a/views/mods/mod_productview/productview.phtml
+++ b/views/mods/mod_productview/productview.phtml
@@ -35,13 +35,32 @@
<?php if (wpsg_isSizedArray($this->view['wpsg_mod_productview']['products'])) { ?>
<?php $i = 0; foreach ($this->view['wpsg_mod_productview']['products'] as $oProduct) { $i ++; ?>
- <a title="<?php echo wpsg_translate(__('Zum Produkt "#1#"', 'wpsg'), $oProduct->getProductName()); ?>" href="<?php echo $oProduct->getProductURL(); ?>" class="wpsg_productview_product wpsg_productview_product_<?php echo $oProduct->id; ?> col-lg-3">
+ <a title="<?php echo wpsg_hspc(wpsg_translate(__('Zum Produkt "#1#"', 'wpsg'), $oProduct->getProductName())); ?>" href="<?php echo $oProduct->getProductURL(); ?>" class="wpsg_productview_product wpsg_productview_product_<?php echo $oProduct->id; ?> col-lg-3">
<?php if ($this->hasMod('wpsg_mod_produktbilder')) { ?>
<?php $image_url = $this->callMod('wpsg_mod_produktbilder', 'getProductImage', array($oProduct->id, 520, 520, 'sz')); ?>
<?php if (wpsg_isSizedString($image_url)) { ?>
<div class="wpsg_mod_productview_image">
+
<img src="<?php echo $image_url; ?>" alt="" />
+
+ <div class="wpsg_mod_productview_go">
+ <div class="wpsg_star_wrap">
+ <?php $star = rand(0, 5); ?>
+ <?php for ($i = 0; $i <= 5; $i ++) { ?><i class="fa fa-star-o"></i><?php } ?>
+ </div>
+ <div class="wpsg_center">
+ <div class="wpsg_price"><?php echo wpsg_ff($oProduct->getPrice(), $this->get_option('wpsg_currency')); ?></div>
+
+ <?php if ($this->getFrontendTaxview() == WPSG_BRUTTO) { ?>
+ <?php // echo wpsg_translate(__('inkl. #1#% MwSt. zzgl. <a href="#2">Versandkosten</a>', 'wpsg'), $oProduct->getFrontendTaxValue(), $this->getUrl(wpsg_ShopController::URL_VERSANDKOSTEN)); ?>
+ <?php } else if ($this->getFrontendTaxview() == WPSG_NETTO) { ?>
+
+ <?php } ?>
+
+ </div>
+ </div>
+
</div>
<?php } } ?>
@@ -69,9 +88,7 @@
</div>
<input type="hidden" name="wpsg_atts" value="<?php echo @wpsg_hspc(serialize($this->view['wpsg_mod_productview']['atts'])); ?>" />
-
- <div class="wpsg_mod_productview_go"><span class="glyphicon glyphicon-eye-open"></span></div>
-
+
</a>
<?php if ($i % 4 === 0) { ?>