From ca65f7ffa88de92dbe4c43caa97563a56c9b60b5 Mon Sep 17 00:00:00 2001 From: thomas Date: Fri, 5 Apr 2019 09:13:17 +0000 Subject: - optionale Darstellung in der Produktverwaltung git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7384 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_produktartikel/settings_edit.phtml | 12 ++- views/produkt/index.phtml | 100 ++++++++++++++++++++-- 2 files changed, 105 insertions(+), 7 deletions(-) (limited to 'views') diff --git a/views/mods/mod_produktartikel/settings_edit.phtml b/views/mods/mod_produktartikel/settings_edit.phtml index ece29ef..49be190 100644 --- a/views/mods/mod_produktartikel/settings_edit.phtml +++ b/views/mods/mod_produktartikel/settings_edit.phtml @@ -18,8 +18,16 @@ get_option('wpsg_mod_produktartikel_showSearch'), array('help' => 'wpsg_mod_produktartikel_showSearch')); ?> get_option('wpsg_mod_produktartikel_showFeed'), array('help' => 'wpsg_mod_produktartikel_showFeed')); ?> get_option('wpsg_mod_produktartikel_onlyMainQuery'), array('help' => 'wpsg_mod_produktartikel_onlyMainQuery')); ?> -get_option('wpsg_mod_produktartikel_ean'), array('help' => 'wpsg_mod_produktartikel_ean')); ?> -get_option('wpsg_mod_produktartikel_gtin'), array('help' => 'wpsg_mod_produktartikel_gtin')); ?> + +
+ +get_option('wpsg_mod_produktartikel_ean'), array('help' => 'wpsg_mod_produktartikel_ean')); ?> +get_option('wpsg_mod_produktartikel_gtin'), array('help' => 'wpsg_mod_produktartikel_gtin')); ?> +
+ +get_option('wpsg_mod_produktartikel_positionnumber'), array('help' => 'wpsg_mod_produktartikel_positionnumber')); */ ?> + +
__('Produktspezifisch', 'wpsg'), diff --git a/views/produkt/index.phtml b/views/produkt/index.phtml index 5376495..64a1fb2 100644 --- a/views/produkt/index.phtml +++ b/views/produkt/index.phtml @@ -141,9 +141,35 @@ - - - hasMod('wpsg_mod_productgroups')) { ?> + get_option('wpsg_ProductArticleNumber') == '1') { ?> + + + + hasMod('wpsg_mod_produktartikel') && $this->get_option('wpsg_mod_produktartikel_positionnumber') == '1') { ?> + + + + hasMod('wpsg_mod_produktartikel') && $this->get_option('wpsg_mod_produktartikel_gtin') == '1') { ?> + + + + hasMod('wpsg_mod_produktartikel') && $this->get_option('wpsg_mod_produktartikel_ean') == '1') { ?> + + + + hasMod('wpsg_mod_deliverytime') && $this->get_option('wpsg_mod_deliverytime_productindex') == '1') { ?> + + + + hasMod('wpsg_mod_weight') && $this->get_option('wpsg_mod_weight_showProductindexBackend') == '1') { ?> + + + + hasMod('wpsg_mod_fuellmenge') && $this->get_option('wpsg_mod_fuellmenge_showProductindexBackend_fmenge') == '1') { ?> + + + + hasMod('wpsg_mod_productgroups') && $this->get_option('wpsg_mod_productgroups_productindex') == '1') { ?> @@ -194,8 +220,72 @@ callMods('produkt_index_editmenu', array(&$d)); ?> - - hasMod('wpsg_mod_productgroups')) { ?> + get_option('wpsg_ProductArticleNumber') == '1') { ?> + + + hasMod('wpsg_mod_produktartikel') && $this->get_option('wpsg_mod_produktartikel_positionnumber') == '1') { ?> + + + + + hasMod('wpsg_mod_produktartikel') && $this->get_option('wpsg_mod_produktartikel_gtin') == '1') { ?> + + + hasMod('wpsg_mod_produktartikel') && $this->get_option('wpsg_mod_produktartikel_ean') == '1') { ?> + + + + hasMod('wpsg_mod_deliverytime') && $this->get_option('wpsg_mod_deliverytime_productindex') == '1') { ?> + + callMod('wpsg_mod_deliverytime', 'isStoreProduct', array($oProduct->getProductKey()))) { ?> + +
+ callMod('wpsg_mod_deliverytime', 'displayStoreText', array($oProduct->getProductKey()))); ?> +
+ callMod('wpsg_mod_deliverytime', 'displayStoreLink', array($oProduct->getProductKey())) ?> + +   + + + + + callMod('wpsg_mod_deliverytime', 'displayDelayTime', array($oProduct->getProductKey())); ?> + +
+
+
+ + + callMod('wpsg_mod_deliverytime', 'displayDeliveryTime', array($oProduct->getProductKey())); ?> + + callMod('wpsg_mod_deliverytime', 'displayDeliveryTime', array($oProduct->getProductKey())); ?> + + + + + + + hasMod('wpsg_mod_weight') && $this->get_option('wpsg_mod_weight_showProductindexBackend') == '1') { ?> + + weight) > '0') { ?> + id.'">'.wpsg_ff($oProduct->weight).'', $this->get_option('wpsg_mod_weight_unit')); ?> + + + + + + + hasMod('wpsg_mod_fuellmenge') && $this->get_option('wpsg_mod_fuellmenge_showProductindexBackend_fmenge') == '1') { ?> + + fmenge) > '0') { ?> + '.wpsg_ff($oProduct->fmenge, '', true).' '.$this->callMod('wpsg_mod_fuellmenge', 'getUnit', [$oProduct->feinheit])); ?> + + + + + + + hasMod('wpsg_mod_productgroups') && $this->get_option('wpsg_mod_productgroups_productindex') == '1') { ?> -- cgit v1.2.3