From bd56b6eb31cc1625d830dda84c8d2e28ff5c4ebd Mon Sep 17 00:00:00 2001 From: hartmut Date: Wed, 8 Mar 2017 07:34:56 +0000 Subject: Adressteilung und Produktbilder mit Mediathek git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6094 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_kundenverwaltung/index.phtml | 4 +- views/mods/mod_productvariants/admin_edit.phtml | 91 ++++++ .../produkt_addedit_content.phtml | 213 ++++++------- .../mod_produktbilder/produkt_edit_list_MT.phtml | 27 ++ .../wpsg_order_view_customerdata.phtml | 2 +- views/order/view_customerdata.phtml | 2 +- views/produkttemplates/standard_mt.phtml | 341 +++++++++++++++++++++ 7 files changed, 554 insertions(+), 126 deletions(-) create mode 100644 views/mods/mod_produktbilder/produkt_edit_list_MT.phtml create mode 100644 views/produkttemplates/standard_mt.phtml diff --git a/views/mods/mod_kundenverwaltung/index.phtml b/views/mods/mod_kundenverwaltung/index.phtml index 49d06d7..b54e340 100644 --- a/views/mods/mod_kundenverwaltung/index.phtml +++ b/views/mods/mod_kundenverwaltung/index.phtml @@ -16,7 +16,7 @@ -
+
diff --git a/views/mods/mod_productvariants/admin_edit.phtml b/views/mods/mod_productvariants/admin_edit.phtml index 11a8825..4a1f691 100644 --- a/views/mods/mod_productvariants/admin_edit.phtml +++ b/views/mods/mod_productvariants/admin_edit.phtml @@ -132,6 +132,24 @@   TODO: Bilder + callMod('wpsg_mod_produktbilder', 'getProduktBilder_MT', array($this->view['product_id'])); + $k = $this->view['variant']['id']; + $kv = $vari['id']; + $temp = $this->callMod('wpsg_mod_productvariants', 'getVariImages', array($this->view['product_id'], $k, $kv)); + ?> + + view['variant']['id'] $vari $var $kv $_REQUEST['pic'] + $file = $b['basename']; + $href = wp_get_attachment_image_src($b['post_id'], Array(25, 25)); + ?> + pic" id="" + onclick="return wpsg_vp_vari_setPic(this, , , '', );" href=""> + + + + + @@ -142,6 +160,79 @@ - - - - - - -

- - -

- - view['data']['id'])) { ?> -
-
- - - +
+
+

- -
-
view['ProduktList2']; ?>
- - - + + + + + + + + + +

+ + +

+ + view['data']['id'])) { ?> +
+
+ + + +
\ No newline at end of file diff --git a/views/mods/mod_produktbilder/produkt_edit_list_MT.phtml b/views/mods/mod_produktbilder/produkt_edit_list_MT.phtml new file mode 100644 index 0000000..b7e701b --- /dev/null +++ b/views/mods/mod_produktbilder/produkt_edit_list_MT.phtml @@ -0,0 +1,27 @@ + + + view['ProduktBilder_MT']) && (sizeof($this->view['ProduktBilder_MT']) > 0)) { ?> + + view['ProduktBilder_MT'] as $b) { ?> + +
+ + + <?php echo wpsg_hspc($b['fname']); ?> + + + +
+ + +
+ + +

+ \ No newline at end of file diff --git a/views/mods/mod_shippingadress/wpsg_order_view_customerdata.phtml b/views/mods/mod_shippingadress/wpsg_order_view_customerdata.phtml index d27f09a..c091272 100644 --- a/views/mods/mod_shippingadress/wpsg_order_view_customerdata.phtml +++ b/views/mods/mod_shippingadress/wpsg_order_view_customerdata.phtml @@ -68,7 +68,7 @@ view['wpsg_mod_shippingadress']['shipping_title']) && $this->view['wpsg_mod_shippingadress']['shipping_title'] != '-1') - echo $this->view['arTitles'][$this->view['wpsg_mod_shippingadress']['shipping_title']]; + echo $this->view['wpsg_mod_shippingadress']['shipping_title']; ?> view['wpsg_mod_shippingadress']['shipping_vname']); ?> view['wpsg_mod_shippingadress']['shipping_name']); ?>
view['wpsg_mod_shippingadress']['shipping_strasse']); ?>
diff --git a/views/order/view_customerdata.phtml b/views/order/view_customerdata.phtml index 317339e..24faf4b 100644 --- a/views/order/view_customerdata.phtml +++ b/views/order/view_customerdata.phtml @@ -57,7 +57,7 @@ view['data']['firma']) != '') { ?> view['data']['firma']); ?>
- view['data']['title'] != '' && $this->view['data']['title'] != '-1')?wpsg_hspc($this->view['arTitles'][$this->view['data']['title']]).' ':''); ?>view['data']['vname']); ?> view['data']['name']); ?>
+ view['data']['title'] != '' && $this->view['data']['title'] != '-1')?wpsg_hspc($this->view['data']['title']).' ':''); ?>view['data']['vname']); ?> view['data']['name']); ?>
view['data']['strasse']); ?>
view['data']['plz']); ?> view['data']['ort']); ?> view['country']['kuerzel']); ?>
diff --git a/views/produkttemplates/standard_mt.phtml b/views/produkttemplates/standard_mt.phtml new file mode 100644 index 0000000..d310391 --- /dev/null +++ b/views/produkttemplates/standard_mt.phtml @@ -0,0 +1,341 @@ +view['data']); + + // Damit keine Zubehörprodukte ausgegeben werden + //$this->noReleatedProducts = true; + + //wpsg_debug($_SESSION); + +if (!function_exists('is_plugin_active')) + require_once(ABSPATH.'/wp-admin/includes/plugin.php'); +?> +
+ +
+ + + + callMods('product_top', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?> + +
+ +
+
+ + hasMod('wpsg_mod_produktbilder')) { ?> +
+ get_option('wpsg_mod_produktbilder_width'); + $pbh = $this->get_option('wpsg_mod_produktbilder_height'); + $pbm = $this->get_option('wpsg_mod_produktbilder_mode'); + $pbArr = $this->callMod('wpsg_mod_produktbilder', 'getProduktBilder2', array($this->view['data']['id'])); + ?> + + + view['data']['varianten_image']) || $b['basename'] == $this->view['data']['varianten_image']) { ?> +
+ + + +
+ + + + + +
+
+ + +
+
+ +
+ +
+

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

+ callMods('product_top_afterheadline', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?> +
+
+ get_option('wpsg_showArticelnumber') == '1') { ?> +
+ : view['data']['anr']); ?>
+ get_option('wpsg_mod_produktartikel_ean'))) {?> + :view['data']['ean']); ?>
+ + get_option('wpsg_mod_produktartikel_gtin'))) {?> + :view['data']['gtin']); ?>
+
+ + + + callMod('wpsg_mod_kundenverwaltung', 'isLoggedIn') && ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '1')) || ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '0')) { ?> + +
+ + + + view['data']['preis'], $this->get_option('wpsg_currency')); ?> + view['data']['price_info'])) { echo '
'.wpsg_hspc($this->view['data']['price_info']).'
'; } ?> + + hasMod('wpsg_mod_discount') && wpsg_getInt($this->view['data']['preis_prediscount']) > 0 && wpsg_isSizedInt($this->get_option('wpsg_mod_discount_show'))) { ?> +
+ : view['data']['preis_prediscount'], $this->get_option('wpsg_currency')); ?> +
+ +
+ + 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_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', 'displayDelayTime', array($this->view['data']['product_key'])); ?> + +
+ +
+
+ + + + + + + + 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')); ?> +
+ + + + +
+ callMod('wpsg_mod_varianten', 'renderTemplate', array($this->view['data']['product_key'])); ?> +
+ +
+ +
+ +
+
+ callMods('productForSale', array($this->view['data']['product_key'])) || ($this->hasMod('wpsg_mod_request') && $this->callMod('wpsg_mod_request', 'isRequestProduct', array($this->view['data']['id'])))) { ?> +
+ + + + view['data']['basket_multiple'] == 4)?' readonly="readonly" ':''); ?> + /> + + get_option('wpsg_afterinsert'), array('2', '3'))) { ?> + + + +
+ +
+ +
+ + +
+ callMod('wpsg_mod_kundenverwaltung', 'isLoggedIn') && ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '1')) || ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '0')) { ?> + callMods('productForSale', array($this->view['data']['product_key']))) { ?> + + + + + + +
+
+ +
+ + 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 -- cgit v1.2.3