From a9c7ad64290873e167d5d9f226e0b8ca54c532fd Mon Sep 17 00:00:00 2001 From: thomas Date: Thu, 19 Apr 2018 07:24:19 +0000 Subject: - Füllmenge: Grundpreis wird bei 0 ausgeblendet - Produktindex: Füllmenge, Gewicht, ... < 0 ausgeblendet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6995 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_productindex/layouts/grid.phtml | 34 +++++++++--------- views/mods/mod_productindex/layouts/list.phtml | 31 ++++++++-------- views/produkttemplates/standard.phtml | 49 ++++++++++++++++++++------ 3 files changed, 74 insertions(+), 40 deletions(-) diff --git a/views/mods/mod_productindex/layouts/grid.phtml b/views/mods/mod_productindex/layouts/grid.phtml index 1d5442a..cb3e6c0 100644 --- a/views/mods/mod_productindex/layouts/grid.phtml +++ b/views/mods/mod_productindex/layouts/grid.phtml @@ -111,28 +111,30 @@
hasMod('wpsg_mod_weight') && $this->get_option('wpsg_mod_weight_showProductindex') == '1') { ?> - - get_option('wpsg_mod_weight_unit'))); ?> - - get_option('wpsg_mod_weight_unit'))); ?> - + '0') { ?> + + get_option('wpsg_mod_weight_unit'))); ?> + + get_option('wpsg_mod_weight_unit'))); ?> + +
hasMod('wpsg_mod_fuellmenge') && $this->get_option('wpsg_mod_fuellmenge_showProductindex_fmenge') == '1') { ?> - - -
- -
- hasMod('wpsg_mod_fuellmenge') && $this->get_option('wpsg_mod_fuellmenge_showProductindex_grundpreis') == '1') { ?> - get_option('wpsg_currency')), - wpsg_ff($this->get_option('wpsg_mod_fuellmenge_bezug'), $p['feinheit']) - ); ?> + '0') { ?> + +
+ get_option('wpsg_mod_fuellmenge_showProductindex_grundpreis') == '1') { ?> + get_option('wpsg_currency')), + wpsg_ff($this->get_option('wpsg_mod_fuellmenge_bezug'), $p['feinheit']) + ); ?> + + -
+
hasMod('wpsg_mod_stock') && $this->get_option('wpsg_mod_stock_showProductindex') == '1') { ?> diff --git a/views/mods/mod_productindex/layouts/list.phtml b/views/mods/mod_productindex/layouts/list.phtml index 4fa8528..e8b6f0e 100644 --- a/views/mods/mod_productindex/layouts/list.phtml +++ b/views/mods/mod_productindex/layouts/list.phtml @@ -98,17 +98,28 @@
hasMod('wpsg_mod_weight') && $this->get_option('wpsg_mod_weight_showProductindex') == '1') { ?> - - get_option('wpsg_mod_weight_unit'))); ?> - - get_option('wpsg_mod_weight_unit'))); ?> - + '0') { ?> + + get_option('wpsg_mod_weight_unit'))); ?> + + get_option('wpsg_mod_weight_unit'))); ?> + +
hasMod('wpsg_mod_fuellmenge') && $this->get_option('wpsg_mod_fuellmenge_showProductindex_fmenge') == '1') { ?> - + '0') { ?> + +
+ get_option('wpsg_mod_fuellmenge_showProductindex_grundpreis') == '1') { ?> + get_option('wpsg_currency')), + wpsg_ff($this->get_option('wpsg_mod_fuellmenge_bezug'), $p['feinheit']) + ); ?> + +
@@ -118,14 +129,6 @@
-
- hasMod('wpsg_mod_fuellmenge') && $this->get_option('wpsg_mod_fuellmenge_showProductindex_grundpreis') == '1') { ?> - get_option('wpsg_currency')), - wpsg_ff($this->get_option('wpsg_mod_fuellmenge_bezug'), $p['feinheit']) - ); ?> - -
getProductName($this->getProduktID($p['id']), true); ?> diff --git a/views/produkttemplates/standard.phtml b/views/produkttemplates/standard.phtml index 0d0d5f1..a80c171 100644 --- a/views/produkttemplates/standard.phtml +++ b/views/produkttemplates/standard.phtml @@ -130,29 +130,53 @@
+ view['data']['shortdesc']; ?> +
hasMod('wpsg_mod_stock') && $this->get_option('wpsg_mod_stock_showProduct') == '1') { ?> +
- + + view['data']['stock']) > '0') {?> + + + + + + + + +
hasMod('wpsg_mod_fuellmenge')) { ?> - +
- - '.wpsg_ff($this->view['data']['fmenge'], '', true).' '.$this->view['data']['feinheit'], - ''.wpsg_ff($this->view['data']['fmenge_preis'], $this->get_option('wpsg_currency')).' ', - wpsg_ff($this->get_option('wpsg_mod_fuellmenge_bezug'), $this->view['data']['feinheit']) - ); ?> + + view['data']['fmenge']) > '0') { ?> + + + + '.wpsg_ff($this->view['data']['fmenge'], '', true).' '.$this->view['data']['feinheit'], + ''.wpsg_ff($this->view['data']['fmenge_preis'], $this->get_option('wpsg_currency')).' ', + wpsg_ff($this->get_option('wpsg_mod_fuellmenge_bezug'), $this->view['data']['feinheit']) + ); ?> + + + + + + +
@@ -161,8 +185,13 @@ hasMod('wpsg_mod_weight') && $this->get_option('wpsg_mod_weight_showProduct') === '1') { ?>
- - view['data']['id'].'">'.wpsg_ff($this->view['data']['weight']).'', $this->get_option('wpsg_mod_weight_unit')); ?> + + view['data']['weight']) > '0') { ?> + + view['data']['id'].'">'.wpsg_ff($this->view['data']['weight']).'', $this->get_option('wpsg_mod_weight_unit')); ?> + + +
-- cgit v1.2.3