From ed6898ed74b8fb954ff12cabbbec7611d3a33ae6 Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Thu, 15 Dec 2016 07:50:13 +0000 Subject: - Altes Variantenmodul nach system/intern verschoben git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5987 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_varianten/basket_row.phtml | 23 - views/mods/mod_varianten/drawVarianten.phtml | 535 --------------------- views/mods/mod_varianten/mail_row.phtml | 18 - views/mods/mod_varianten/mail_row_html.phtml | 22 - views/mods/mod_varianten/order_view_row.phtml | 22 - views/mods/mod_varianten/overview_row.phtml | 22 - views/mods/mod_varianten/produkt.phtml | 211 -------- .../mod_varianten/produkt_addedit_content.phtml | 304 ------------ views/mods/mod_varianten/settings_edit.phtml | 27 -- views/mods/mod_varianten/varianten.js | 58 --- 10 files changed, 1242 deletions(-) delete mode 100644 views/mods/mod_varianten/basket_row.phtml delete mode 100644 views/mods/mod_varianten/drawVarianten.phtml delete mode 100644 views/mods/mod_varianten/mail_row.phtml delete mode 100644 views/mods/mod_varianten/mail_row_html.phtml delete mode 100644 views/mods/mod_varianten/order_view_row.phtml delete mode 100644 views/mods/mod_varianten/overview_row.phtml delete mode 100644 views/mods/mod_varianten/produkt.phtml delete mode 100644 views/mods/mod_varianten/produkt_addedit_content.phtml delete mode 100644 views/mods/mod_varianten/settings_edit.phtml delete mode 100644 views/mods/mod_varianten/varianten.js diff --git a/views/mods/mod_varianten/basket_row.phtml b/views/mods/mod_varianten/basket_row.phtml deleted file mode 100644 index ba8063e..0000000 --- a/views/mods/mod_varianten/basket_row.phtml +++ /dev/null @@ -1,23 +0,0 @@ - -view['variante']) ?> - - : - - - view['variante'] as $vari => $value) { ?> - - : ; ; get_option('wpsg_currency') ?> -
- - - - view['variante']['key']; ?> - - - \ No newline at end of file diff --git a/views/mods/mod_varianten/drawVarianten.phtml b/views/mods/mod_varianten/drawVarianten.phtml deleted file mode 100644 index ca9cbc4..0000000 --- a/views/mods/mod_varianten/drawVarianten.phtml +++ /dev/null @@ -1,535 +0,0 @@ - -view['message'])) { ?> -view['message'][0] == "1") { ?> -view['message'][1]; ?>

- -view['message'][1]; ?>

- - - -view['vp_data']) <= 0) { ?> -

- - -
- view['vp_data'] as $k => $var) { $i ++; ?> -
- -
- -
callMod('wpsg_mod_varianten', 'getVariantenName', array($this->view['vp_data'], $k)); ?>
- - () - - () - - () - - () - -
- - - <?php echo __(" /> - - <?php echo __('Variante deaktivieren', 'wpsg'); ?> - - <?php echo __('Variante aktivieren', 'wpsg'); ?> -
- - - - - - - - - - - - - hasMod('wpsg_mod_weight')) { ?> - - - hasMod('wpsg_mod_stock') && $var['typ'] != 'checkbox') { ?> - - - - - - - - - - hasMod('wpsg_mod_weight')) { $ModCol ++; ?> - - - hasMod('wpsg_mod_stock') && $var['typ'] != 'checkbox') { $ModCol ++; ?> - - - - hasMod('wpsg_mod_produktbilder')) { ?> - - - - - - -
 
get_option('wpsg_currency')):wpsg_ff(0, $this->get_option('wpsg_currency'))); ?> - -
  - - callMod('wpsg_mod_varianten', 'getVariImages', array($this->view['data']['id'], $k, -1)) as $file) { $j ++; $url_tn = $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($this->view['data']['id'], $file, 25, 25, 's')); ?> - pic" id="" onclick="return wpsg_vp_vari_setPic(this, , -1, '', );" href=""> - - - - - - - - - -
- - - - - - - - - 0) { ?> - - - - - - - hasMod('wpsg_mod_fuellmenge')) { ?> - - - hasMod('wpsg_mod_weight')) { ?> - - - hasMod('wpsg_mod_stock')) { ?> - - - - - - - $vari) { $ModCol = 0; ?> - - - - - - - hasMod('wpsg_mod_fuellmenge')) { $ModCol ++; ?> - - - hasMod('wpsg_mod_weight')) { $ModCol ++; ?> - - - hasMod('wpsg_mod_stock')) { $ModCol ++; ?> - - - - - hasMod('wpsg_mod_produktbilder')) { ?> - - - - - - - - - - - - - - - - - -
  
callMod('wpsg_mod_varianten', 'getVariName', array($this->view['vp_data'], $k, $kv)); - ?>get_option('wpsg_currency')):wpsg_ff(0, $this->get_option('wpsg_currency'))); ?>view['vp_arFeinheiten'][$this->view['vp_productdata']['feinheit']]):"0"); ?> - - - " style="float:right; margin-left:10px;" onclick="return wpsg_vp_vari_del(, );"><?php echo __(" /> - - " style="float:right; margin-left:10px;" onclick="return wpsg_vp_vari_deaktiv(, , 0);"><?php echo __(" /> - - " style="float:right; margin-left:10px;" onclick="return wpsg_vp_vari_deaktiv(, , 1);"><?php echo __(" /> - - - - - -
  - - callMod('wpsg_mod_varianten', 'getVariImages', array($this->view['data']['id'], $k, $kv)) as $file) { $j ++; $url_tn = $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($this->view['data']['id'], $file, 25, 25, 's')); ?> - pic" id="" onclick="return wpsg_vp_vari_setPic(this, , , '', );" href=""> - - - - - - - - - -
: - " class="button" /> -
- - -
-
- - -
- - - - - -
- - - - - -" class="button" /> -
- - - \ No newline at end of file diff --git a/views/mods/mod_varianten/mail_row.phtml b/views/mods/mod_varianten/mail_row.phtml deleted file mode 100644 index 1ee4d48..0000000 --- a/views/mods/mod_varianten/mail_row.phtml +++ /dev/null @@ -1,18 +0,0 @@ - -view['variante']) ?> - - -view['variante'] as $vari => $value) { ?> - - : ; ; get_option('wpsg_currency')."\n" ?> - - - -: view['variante']['key']; ?> - diff --git a/views/mods/mod_varianten/mail_row_html.phtml b/views/mods/mod_varianten/mail_row_html.phtml deleted file mode 100644 index 29221d6..0000000 --- a/views/mods/mod_varianten/mail_row_html.phtml +++ /dev/null @@ -1,22 +0,0 @@ - - -   - : - - - view['variante'] as $vari => $value) { ?> - - : ; ; get_option('wpsg_currency'); ?>
- - - - view['variante']['key']; ?> - - - \ No newline at end of file diff --git a/views/mods/mod_varianten/order_view_row.phtml b/views/mods/mod_varianten/order_view_row.phtml deleted file mode 100644 index 37c1ec9..0000000 --- a/views/mods/mod_varianten/order_view_row.phtml +++ /dev/null @@ -1,22 +0,0 @@ - - - : - - get_option('wpsg_vp_detailview') == 1) { ?> - view['variante'] as $vari => $value) { ?> - - : ; ; get_option('wpsg_currency') ?> -
- - - - view['variante']['key']; ?> - - - \ No newline at end of file diff --git a/views/mods/mod_varianten/overview_row.phtml b/views/mods/mod_varianten/overview_row.phtml deleted file mode 100644 index ed20591..0000000 --- a/views/mods/mod_varianten/overview_row.phtml +++ /dev/null @@ -1,22 +0,0 @@ - - - : - - - view['variante'] as $vari => $value) { ?> - - : ; ; get_option('wpsg_currency') ?> -
- - - - view['variante']['key']; ?> - - - \ No newline at end of file diff --git a/views/mods/mod_varianten/produkt.phtml b/views/mods/mod_varianten/produkt.phtml deleted file mode 100644 index 50fe295..0000000 --- a/views/mods/mod_varianten/produkt.phtml +++ /dev/null @@ -1,211 +0,0 @@ - - - - -view['data']['vp_data']) && sizeof($this->view['data']['vp_data']) > 0) { ?> - - view['data']['vp_data'] as $k => $var) { - - if ($var['aktiv'] == "1") { - - $vAktiv = true; ?> - -
- - - - - - - - - -
- - - - - - - - hasMod('wpsg_mod_produktbilder')) { ?> -
- - $vari) { - if ($vari['aktiv'] == '1' && (!$this->hasMod('wpsg_mod_stock') || $vari['stock'] > 0)) { ?> - callMod('wpsg_mod_varianten', 'getImageSelectImage', array($this->getProduktId($this->view['data']['id']), $k, $kv, $this->view['data']['product_key'])); ?> - - - - - - - -
- - - - - $vari) { if ($vari['aktiv'] == "1") { $j ++; ?> - hasMod('wpsg_mod_stock') || $vari['stock'] > 0 || $this->get_option('wpsg_mod_vp_showProduct') === '1') { ?> - - - - - - - - - - -
- -
-
- - - view['data']['vp_data'] as $k => $var) */ ?> - \ No newline at end of file diff --git a/views/mods/mod_varianten/produkt_addedit_content.phtml b/views/mods/mod_varianten/produkt_addedit_content.phtml deleted file mode 100644 index 1a99ec4..0000000 --- a/views/mods/mod_varianten/produkt_addedit_content.phtml +++ /dev/null @@ -1,304 +0,0 @@ - - - - -
-
-

- -

-
-
- view['data']['id'] > 0) { ?> - callMod('wpsg_mod_varianten', 'drawVarianten', array(&$this->view['wpsg_mod_varianten']['data']['id'])); ?> - -

- - -

- - -
-
\ No newline at end of file diff --git a/views/mods/mod_varianten/settings_edit.phtml b/views/mods/mod_varianten/settings_edit.phtml deleted file mode 100644 index 09db918..0000000 --- a/views/mods/mod_varianten/settings_edit.phtml +++ /dev/null @@ -1,27 +0,0 @@ - -get_option('wpsg_vp_showpic'), array('help' => 'wpsg_vp_showpic')); ?> -get_option('wpsg_vp_detailview'), array('help' => 'wpsg_vp_detailview')); ?> -get_option('wpsg_mod_vp_showProduct'), array('help' => 'wpsg_mod_vp_showProduct')); ?> -
-get_option('wpsg_vp_showpic_width'), array('help' => 'wpsg_vp_showpic_width')); ?> -get_option('wpsg_vp_showpic_height'), array('help' => 'wpsg_vp_showpic_height')); ?> -get_option('wpsg_vp_replaceanr'), array('hint' => __('Ersetzt die Produktartikelnummer durch die zusammengesetzte Artikelnummern der Varianten.', 'wpsg'), 'help' => 'wpsg_vp_replaceanr')); ?> - -hasMod('wpsg_mod_produktbilder')) { ?> -
-

-get_option('wpsg_vp_imageselect_width'), array('help' => 'wpsg_vp_imageselect_width')); ?> -get_option('wpsg_vp_imageselect_height'), array('help' => 'wpsg_vp_imageselect_height')); ?> -callMod('wpsg_mod_produktbilder', 'getImageModes'), $this->get_option('wpsg_vp_imageselect_mode'), array('help' => 'wpsg_vp_imageselect_mode')); ?> -
- - -
- -
\ No newline at end of file diff --git a/views/mods/mod_varianten/varianten.js b/views/mods/mod_varianten/varianten.js deleted file mode 100644 index f87c626..0000000 --- a/views/mods/mod_varianten/varianten.js +++ /dev/null @@ -1,58 +0,0 @@ - - var wpsg_vp_vari = new Array(); - - function wpsg_vp_switch(product_id, product_index) - { - - var var_key = 'vp_' + product_id + "/"; - - for (var i = 0; i < wpsg_vp_vari[product_id].length; i ++) - { - - var_key += i + "_"; - - if (wpsg_vp_vari[product_id][i] == "select") - { - var_key += jQuery('#wpsg_produktform_' + product_index + ' .wpsg_produkt_' + product_id + " #wpsg_vpfield_" + product_id + "_" + i).val(); - } - else if (wpsg_vp_vari[product_id][i] == "radio") - { - var_key += jQuery('#wpsg_produktform_' + product_index + ' .wpsg_produkt_' + product_id + ' input[name="wpsg_vp[' + i + ']"]:checked').val(); - } - else if (wpsg_vp_vari[product_id][i] == "checkbox") - { - var_key += jQuery('#wpsg_produktform_' + product_index + ' .wpsg_produkt_' + product_id + ' input[name="wpsg_vp[' + i + ']"]:checked').length; - } - else if (wpsg_vp_vari[product_id][i] == "image") - { - var_key += jQuery('#wpsg_produktform_' + product_index + ' .wpsg_produkt_' + product_id + ' .wpsg_mod_varianten_imageselect_' + i + ' .akt').attr("data-wpsg-id"); - } - - if (i < (wpsg_vp_vari[product_id].length - 1)) var_key += ":"; - - } - - jQuery('#wpsg_produktform_' + product_index).append('
' + wpsg_ajax.label_pleasewait + '
'); - - jQuery.ajax( { - 'url': wpsg_ajax.ajaxurl, - 'method': 'get', - 'data': { - 'action': 'wpsg_varianten_switch', - 'wpsg_post_id': jQuery('#wpsg_produktform_' + product_index + ' input[name="wpsg_post_id"]').val(), - 'quantity': jQuery('#wpsg_menge_' + product_index).val(), - 'template': jQuery('#wpsg_produktform_' + product_index + ' input[name="wpsg[template]"]').val(), - 'referer': jQuery('#wpsg_produktform_' + product_index + ' input[name="myReferer"]').val(), - 'form_data': jQuery('#wpsg_produktform_' + product_index).serialize(), - 'product_key': var_key, - 'product_index': product_index - }, - 'success': function(data) { - - jQuery('#wpsg_produktform_' + product_index).replaceWith(data); - - } - } ); - - } // function wpsg_vp_switch(produkt_id) - \ No newline at end of file -- cgit v1.2.3