From 419d6678e11d2b911e7f09b4a11853e60accd392 Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Sun, 6 Mar 2016 10:08:07 +0000 Subject: - Dummy Bild in Produktverwaltung - MakeTN kommt jetzt auch mit Bildern klar, die keinem Produkt zugeordnet sind git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5386 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/js/admin.js | 2 +- .../mods/mod_productgroups/produkt_index_filter.phtml | 2 +- views/produkt/index.phtml | 18 +++++++----------- 3 files changed, 9 insertions(+), 13 deletions(-) diff --git a/views/js/admin.js b/views/js/admin.js index d86bccf..7c3d016 100644 --- a/views/js/admin.js +++ b/views/js/admin.js @@ -206,7 +206,7 @@ function wpsg_in_array(needle, haystack) else { - jQuery('.wpsg-filter').slideDown(150, function() { jQuery('.wpsg-filter input').first().focus(); } ); + jQuery('.wpsg-filter').slideDown(150, function() { jQuery('.wpsg-filter input[type="text"]').first().focus(); } ); jQuery(this).addClass('active'); } diff --git a/views/mods/mod_productgroups/produkt_index_filter.phtml b/views/mods/mod_productgroups/produkt_index_filter.phtml index 4804860..1455de4 100644 --- a/views/mods/mod_productgroups/produkt_index_filter.phtml +++ b/views/mods/mod_productgroups/produkt_index_filter.phtml @@ -7,5 +7,5 @@ ?> view['productgroups']) && sizeof($this->view['productgroups']) > 0) { ?> -view['arSelect'], wpsg_getStr($_REQUEST['productgroup'])); ?> +view['arSelect'], wpsg_getStr($_REQUEST['search']['pgruppe'])); ?> \ No newline at end of file diff --git a/views/produkt/index.phtml b/views/produkt/index.phtml index 79223f5..6b94e9b 100644 --- a/views/produkt/index.phtml +++ b/views/produkt/index.phtml @@ -61,7 +61,7 @@ -
+
-
+ @@ -168,13 +168,13 @@ callMod('wpsg_mod_produktbilder', 'getProduktBilder', array($d['id'])); - - if (wpsg_isSizedArray($arBilder)) + $img = $this->callMod('wpsg_mod_produktbilder', 'getProductImage', array($d['id'], 40, 40, 'c')); + + if ($img !== false) { echo ''; - echo ''; + echo ''; echo ''; } @@ -228,11 +228,7 @@ getDefaultCountry()->kuerzel.')'; ?> - get_option('wpsg_preisangaben') == WPSG_NETTO) { ?> - get_option('wpsg_currency')); ?> - get_option('wpsg_currency')); ?> - -- cgit v1.2.3