From eb4343b2485dc88cbb4d4f1e5d53b03711b54e9f Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Tue, 6 Jun 2017 15:10:54 +0000 Subject: - Aufräumen / Funktionen in Produktansicht ohne Theme überarbeitet - Basket ohne Tabellen angefangen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6314 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/warenkorb/ajaxDialog.phtml | 217 +++++++++++++++------------------------ 1 file changed, 82 insertions(+), 135 deletions(-) (limited to 'views/warenkorb/ajaxDialog.phtml') diff --git a/views/warenkorb/ajaxDialog.phtml b/views/warenkorb/ajaxDialog.phtml index d029faf..4ac5c4f 100644 --- a/views/warenkorb/ajaxDialog.phtml +++ b/views/warenkorb/ajaxDialog.phtml @@ -4,151 +4,98 @@ * Template für den Dialog wenn im Backend "Lightbox Meldung" eingestellt ist */ - // $this->view['error'] // Steht auf true wenn ein Fehler produziert und angezeigt werden soll // $this->view['product_key'] // Der ProduktSchlüssel des hinzugefügten Produktes // $this->view['amount_add'] // So oft wurde das Produkt hinzugefügt // $this->view['amount_basket'] // So oft befindet sich das hinzugefügte Produkt im Warenkorb // $this->view['product_data'] // Array mit Produktdaten // $this->view['product_index'] // Index des Produktes im Warenkorb -?>
- -
- - view['error'] === true) { ?> + $arImages = $this->callMod('wpsg_mod_produktbilder', 'getProduktBilder_MT', array($this->view['product_data']['product_id'])); + if (!wpsg_isSizedArray($arImages)) $arImages = array(); -

+ $arBasket = $this->basket->toArray(); - writeFrontendMessage(); ?> - -
- -
- -
- - - -
- hasMod('wpsg_mod_produktbilder')) { ?> - callMod('wpsg_mod_produktbilder', 'getProduktBilder_MT', array($this->getProduktId($this->view['product_data']['id']))); ?> - - - - - - -
- -
- view['error'] === true) { echo $this->writeFrontendMessage(); } else { ?> - - - view['amount_add'], - $this->getProductName($this->view['product_data']['id'], true)); ?> - - -
- - -
- - view['product_data']['preis'], $this->get_option('wpsg_currency')); ?> -
-
- +?> + +
+ +
+ +
+ + +
+ + +
+ view['product_data']['preis'], $this->get_option('wpsg_currency')) + ); ?> +
+ get_option('wpsg_currency')) + ); ?> +
+
+ + + + hasMod('wpsg_mod_fuellmenge') && $this->get_option('wpsg_mod_fuellmenge_showAjaxDialog') === '1') { ?> +
+ '.wpsg_ff($this->view['product_data']['fmenge']).'', $this->view['product_data']['feinheit']); ?> +
+ +
+ + + + hasMod('wpsg_mod_weight') && $this->get_option('wpsg_mod_weight_showAjaxDialog') === '1') { ?> +
+ '.wpsg_ff($this->view['product_data']['weight']).'', $this->view['product_data']['weight_unit']); ?> +
+ +
+ + +
+ +
+ + + hasMod('wpsg_mod_relatedproducts') && $this->get_option('wpsg_mod_relatedproducts_showAjaxDialog') === '1') { ?> + callMod('wpsg_mod_relatedproducts', 'getRelatedProducts', array($this->getProduktID($this->view['product_key']))); ?> + +
+

- - hasMod('wpsg_mod_fuellmenge') && $this->get_option('wpsg_mod_fuellmenge_showAjaxDialog') === '1') { ?> -
- '.wpsg_ff($this->view['product_data']['fmenge']).'', $this->view['product_data']['feinheit']); ?> -
- -
- - - - hasMod('wpsg_mod_weight') && $this->get_option('wpsg_mod_weight_showAjaxDialog') === '1') { ?> -
- '.wpsg_ff($this->view['product_data']['weight']).'', $this->view['product_data']['weight_unit']); ?> -
-
- -
- -
- - - hasMod('wpsg_mod_relatedproducts') && $this->get_option('wpsg_mod_relatedproducts_showAjaxDialog') === '1') { ?> - callMod('wpsg_mod_relatedproducts', 'getRelatedProducts', array($this->getProduktID($this->view['product_key']))); ?> - - - -
- - \ No newline at end of file + \ No newline at end of file -- cgit v1.2.3