From d46806278e31bea3ec78e148cd1d5fa63d488466 Mon Sep 17 00:00:00 2001 From: hartmut Date: Wed, 21 Jun 2017 14:47:36 +0000 Subject: Warenkorb und Produktseite responsiv git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6340 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/css/frontend.css | 10 +- views/produkttemplates/standard.phtml | 218 +++++++++++++++++----------------- views/warenkorb/basket.phtml | 1 + 3 files changed, 116 insertions(+), 113 deletions(-) (limited to 'views') diff --git a/views/css/frontend.css b/views/css/frontend.css index 80b9b2d..8c64a19 100644 --- a/views/css/frontend.css +++ b/views/css/frontend.css @@ -36,7 +36,7 @@ input.wpsg_error { border-color:red !important; } .basket_product_wrap .basket_product_row .product_action .price { width: 39%; display:inline-block; text-align:right; } .basket_product_wrap .basket_product_row .product_action .price_total { width: 39%; display:inline-block; font-weight:bold; text-align:right; } .basket_product_wrap .basket_product_row .product_info { display:flex; width:100%; justify-content:space-between; align-items:center; } -.basket_product_wrap .basket_product_row .product_info .titlep { width: 20%; display:inline-block; margin-top:0.3em; margin-bottom:0.3em; } +.basket_product_wrap .basket_product_row .product_info .titlep { width: 20%; min-width:120px; display:inline-block; margin-top:0.3em; margin-bottom:0.3em; } .basket_product_wrap .basket_product_row .product_info .title { width: 30%; display:inline-block; margin-top:0.3em; margin-bottom:0.3em; } .basket_product_wrap .basket_product_row .product_info .valuel { width: 50%; display:inline-block; font-weight:normal; text-align:left; } .basket_product_wrap .basket_product_row .product_info .valuer { width: 50%; display:inline-block; font-weight:normal; text-align:right; } @@ -61,13 +61,13 @@ input.wpsg_error { border-color:red !important; } .basket_sum_wrap .wpsg_mod_basketteaser_row { display:flex; width:100%; justify-content:space-between; align-items:center; } .basket_sum_wrap .wpsg_mod_basketteaser_row .valuer { width: 20%; display:inline-block; font-weight:normal; text-align:right; } .basket_sum_wrap .wpsg_mod_basketteaser_row .valuel { width: 20%; display:inline-block; font-weight:normal; text-align:left; } -.basket_sum_wrap .wpsg_gutschein_add {padding:0.75em 2em;} +.basket_sum_wrap .wpsg_gutschein_add {padding:0.75em 1em;} /* .glyphicon {width:20px !important; text-decoration:none; position:relative; display:inline-block; font-family:'Glyphicons Halflings'; line-height:1rem;} */ .wpsg_basket .wpsg_basket_removelink { float:right; -webkit-box-shadow:none; box-shadow:none; text-decoration:none; border:0px !important; } -.wpsg_basket .wpsg_checkoutbutton { float:right; } +.wpsg_basket .wpsg_checkoutbutton { float:right; padding:0.75em 1em; } .wpsg_basket .wpsg_cell_gesamtsumme_value { font-weight:bold; } -.wpsg_basket .wpsg_refreshbutton, .wpsg_basketbutton { float:left; } +.wpsg_basket .wpsg_refreshbutton, .wpsg_basketbutton { float:left; padding:0.75em 1em; } .wpsg_basket .wpsg_basket_weiter_shoppen {background:#1a1a1a none repeat scroll 0 0; border:0 none; border-radius:2px; color:#fff; font-weight:700; line-height:1; text-transform:uppercase; padding:0.85em 0.875em 0.78em;} /* Checkout + Request*/ @@ -178,6 +178,8 @@ input.wpsg_error { border-color:red !important; } /* Produktattribute */ .wpsg_cell_produktattribute_value { text-align:right; } +.wpsg_mod_produktattribute_label { display:inline-block; min-width:120px; } +.wpsg_mod_produktattribute_value { display:inline-block; } /* Bestellansicht */ .wpsg_mod_kundenverwaltung_order .wpsg_mod_kundenverwaltung_producttable { margin-top:1rem; margin-bottom:2rem; } diff --git a/views/produkttemplates/standard.phtml b/views/produkttemplates/standard.phtml index 34f641b..43e1a26 100644 --- a/views/produkttemplates/standard.phtml +++ b/views/produkttemplates/standard.phtml @@ -8,60 +8,60 @@ //wpsg_debug($this->view['data']); // Damit keine Zubehörprodukte ausgegeben werden - //$this->noReleatedProducts = true; + //$this->noReleatedProducts = true; $arImages = $this->callMod('wpsg_mod_productvariants', 'getKombiVariImages', array($this->view['data']['product_key'])); - if (!wpsg_isSizedArray($arImages)) + if (!wpsg_isSizedArray($arImages)) $arImages = $this->callMod('wpsg_mod_produktbilder', 'getProduktBilder_MT', array($this->view['data']['product_key'])); //$arImages = array(); -?> - +?> +
- +
- + titleDisplayed) { ?>

getProductName($this->view['data']['id']); ?>

- - + + callMods('product_top_afterheadline', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?> - +
- + callMods('product_top', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?>
- +
- +
- - + + - + - + 1) { for ($i = 1; $i < sizeof($arImages); $i ++) { ?> - + - +
- +
- + get_option('wpsg_showArticelnumber') == '1') { ?> -
+
: view['data']['anr']); ?>
get_option('wpsg_mod_produktartikel_ean'))) {?> :view['data']['ean']); ?>
@@ -70,16 +70,16 @@ :view['data']['gtin']); ?>
- - + + view['oProduct']->canDisplayPrice()) { ?> - +
- + - + - + view['oProduct']->getOldPrice(); ?> view['oProduct']->getPrice()) { ?> view['oProduct']->getPrice(), $this->get_option('wpsg_currency')); ?> @@ -87,62 +87,62 @@ view['oProduct']->getPrice(), $this->get_option('wpsg_currency')); ?> - +
- - get_option('wpsg_kleinunternehmer')) { /* Kleinunternehmerregelung aktiviert START */ ?> - + + get_option('wpsg_kleinunternehmer')) { /* Kleinunternehmerregelung aktiviert START */ ?> +
getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'', 'Endpreis'); ?>
- - - -
+ + + +
getFrontendTaxview() == WPSG_NETTO) { /* Frontend = NETTO Preise */ ?> view['data']['mwst_value']), ''.__('Versandkosten', 'wpsg').''); ?> view['data']['mwst_value']), ''.__('Versandkosten', 'wpsg').''); ?>
- + - + getURL(wpsg_ShopController::URL_PROFIL).'">hier bitte ein, um zu bestellen.')); ?> - + - - -
+ + +
view['data']['shortdesc']; ?> -
- +
+
- + hasMod('wpsg_mod_stock') && $this->get_option('wpsg_mod_stock_showProduct') == '1') { ?>
- +
- + 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']) ); ?>
- - + + - + hasMod('wpsg_mod_weight') && $this->get_option('wpsg_mod_weight_showProduct') === '1') { ?>
@@ -151,148 +151,148 @@
- + hasMod('wpsg_mod_deliverytime') && $this->get_option('wpsg_mod_deliverytime_show_product') == '1') { ?> - - + + callMod('wpsg_mod_deliverytime', 'isStoreProduct', array($this->view['data']['product_key']))) { ?> - +
get_option('wpsg_mod_deliverytime_storetext')); ?>
- + get_option('wpsg_page_mod_deliverytime_storelink'))) { ?>   - - + + - +
- callMod('wpsg_mod_deliverytime', 'displayDeliveryTime', array($this->view['data']['product_key'])); ?> + callMod('wpsg_mod_deliverytime', 'displayDeliveryTime', array($this->view['data']['product_key'])); ?>
- + callMod('wpsg_mod_deliverytime', 'displayDelayTime', array($this->view['data']['product_key'])); ?> -
+
- - + + - +
- + view['data']['beschreibung'])) > 0) { ?>
-
+
view['data']['beschreibung']; ?>
- +
- +
callMod('wpsg_mod_productvariants', 'renderTemplate', array($this->view['data']['product_key'])); ?>
- - + +
-
+
view['oProduct']->canOrder()) { ?> -
- +
+ - + view['data']['basket_multiple'] == 4)?' readonly="readonly" ':''); ?> /> - + get_option('wpsg_afterinsert'), array('2', '3'))) { ?> - +
-
+
- -
- - hasMod('wpsg_mod_request') && $this->callMod('wpsg_mod_request', 'isRequestProduct', array($this->view['data']['id']))) { ?> + +
+ + hasMod('wpsg_mod_request') && $this->callMod('wpsg_mod_request', 'isRequestProduct', array($this->view['data']['id']))) { ?> - +
- + view['data']['longdescription'])) > 0) { ?>
-
+
view['data']['longdescription']; ?>
- +
- +
- +
- +
- + callMods('product_bottom', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?> - +
\ No newline at end of file diff --git a/views/warenkorb/basket.phtml b/views/warenkorb/basket.phtml index 0670534..4f41e09 100644 --- a/views/warenkorb/basket.phtml +++ b/views/warenkorb/basket.phtml @@ -223,6 +223,7 @@ Versandkosten:', 'wpsg'), $this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN) ); ?> +
arShipping) > 1) { ?>