diff options
| author | thomas <noreply@maennchen1.de> | 2016-06-10 09:50:36 +0000 |
|---|---|---|
| committer | thomas <noreply@maennchen1.de> | 2016-06-10 09:50:36 +0000 |
| commit | 9584ded9d680342d59c7e5e16784e4e67dd32e8d (patch) | |
| tree | e7bd0f5aa7415ec3849db2b45a006f2375b72aaf | |
| parent | b1347b946ef7120fa951848aa02e7c6f9c8db270 (diff) | |
- Lieferzeit 0 Tag(e) wird als sofort lieferbar im Produkt angezeigt
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5543 0d5edaf7-2b12-4e95-93f4-047927463d4b
| -rw-r--r-- | views/produkttemplates/standard.phtml | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/views/produkttemplates/standard.phtml b/views/produkttemplates/standard.phtml index 9c3ce21..d16fa42 100644 --- a/views/produkttemplates/standard.phtml +++ b/views/produkttemplates/standard.phtml @@ -54,8 +54,13 @@ <?php if ($this->get_option('wpsg_showArticelnumber') == '1') { ?>
<div class="wpsg_artikelnummer">
- <?php echo __('Artikelnummer', 'wpsg'); ?>: <span class="wpsg_anr"><?php echo wpsg_hspc($this->view['data']['anr']); ?></span>
- </div>
+ <?php echo __('Artikelnummer', 'wpsg'); ?>: <span class="wpsg_anr"><?php echo wpsg_hspc($this->view['data']['anr']); ?></span><br />
+ <?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_produktartikel_ean'))) {?>
+ <?php echo __('EAN','wpsg');?>:<span class="wpsg_ean"><?php echo wpsg_hspc($this->view['data']['ean']); ?></span><br />
+ <?php } ?>
+ <?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_produktartikel_gtin'))) {?>
+ <?php echo __('GTIN','wpsg');?>:<span class="wpsg_gtin"><?php echo wpsg_hspc($this->view['data']['gtin']); ?></span><br />
+ <?php }?></div>
<?php } ?>
<div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="wpsg_produkt_preis">
@@ -116,13 +121,16 @@ <?php if ($this->hasMod('wpsg_mod_deliverytime') && $this->get_option('wpsg_mod_deliverytime_show_product') == '1') { ?>
<div class="wpsg_mod_deliverytime">
- <?php echo wpsg_translate(__('Lieferzeit: #1#', 'wpsg'), $this->callMod('wpsg_mod_deliverytime', 'getProductDeliveryTime', array($this->view['data']['id']))); ?>
+ <?php if (($this->view['data']['wpsg_mod_deliverytime_deliverytime']) > '1') { /* Lieferzeit > 0 */ ?>
+ <?php echo wpsg_translate(__('Lieferzeit: #1#', 'wpsg'), $this->callMod('wpsg_mod_deliverytime', 'getProductDeliveryTime', array($this->view['data']['id']))); ?>
+ <?php } else { /* Lieferzeit = 0 */ ?>
+ <?php echo wpsg_translate(__('Lieferzeit: sofort lieferbar', 'wpsg')); ?>
+ <?php } ?>
</div>
<?php } ?>
<?php /* Lieferzeit Anzeige ENDE */ ?>
-
-
+
<?php /* Gewichtsanzeige START */ ?>
<?php if ($this->hasMod('wpsg_mod_weight') && $this->get_option('wpsg_mod_weight_showProduct') === '1') { ?>
<div class="wpsg_mod_weight_produkt">
|
