From ea14638e6c5c6b837bd51b06c15c60a4f727f774 Mon Sep 17 00:00:00 2001 From: hartmut Date: Thu, 8 Jun 2017 07:09:26 +0000 Subject: KombiVariImage und Warnungen git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6319 0d5edaf7-2b12-4e95-93f4-047927463d4b --- .../mod_deliverytime/produkt_addedit_allgemein.phtml | 3 ++- views/mods/mod_productvariants/frontend.js | 2 +- views/mods/mod_productvariants/produkt.phtml | 17 +++++++++++++---- .../mods/mod_voucherproduct/produkt_edit_sidebar.phtml | 9 ++++++--- views/mods/mod_weight/settings_edit.phtml | 3 ++- 5 files changed, 24 insertions(+), 10 deletions(-) (limited to 'views/mods') diff --git a/views/mods/mod_deliverytime/produkt_addedit_allgemein.phtml b/views/mods/mod_deliverytime/produkt_addedit_allgemein.phtml index 2f9f40f..313ecee 100644 --- a/views/mods/mod_deliverytime/produkt_addedit_allgemein.phtml +++ b/views/mods/mod_deliverytime/produkt_addedit_allgemein.phtml @@ -14,7 +14,8 @@ view['wpsg_mod_deliverytime']['deliverytime']), array('unit' => __('Tage', 'wpsg'), 'help' => 'wpsg_mod_deliverytime_input')); ?> get_option('wpsg_mod_deliverytime_store'))) {?> - view['wpsg_mod_deliverytime']['wpsg_mod_deliverytime_storeproduct'], array('help' => 'wpsg_mod_deliverytime_store'));?> + view['wpsg_mod_deliverytime']['wpsg_mod_deliverytime_storeproduct'])) + echo wpsg_drawForm_Checkbox('wpsg_mod_deliverytime[wpsg_mod_deliverytime_storeproduct]', __('Als Offlineprodukt anzeigen', 'wpsg'), $this->view['wpsg_mod_deliverytime']['wpsg_mod_deliverytime_storeproduct'], array('help' => 'wpsg_mod_deliverytime_store'));?>
diff --git a/views/mods/mod_productvariants/frontend.js b/views/mods/mod_productvariants/frontend.js index 94cae44..bb919d2 100644 --- a/views/mods/mod_productvariants/frontend.js +++ b/views/mods/mod_productvariants/frontend.js @@ -3,7 +3,7 @@ { var template_index = jQuery(event.target).closest('.wpsg_mod_productvariants_product_wrap').attr('wpsg-productindex'); - + wpsg_blockProductTemplate(template_index); jQuery.ajax( { diff --git a/views/mods/mod_productvariants/produkt.phtml b/views/mods/mod_productvariants/produkt.phtml index 9984745..df7e7ee 100644 --- a/views/mods/mod_productvariants/produkt.phtml +++ b/views/mods/mod_productvariants/produkt.phtml @@ -101,7 +101,8 @@ hasMod('wpsg_mod_produktbilder')) { ?>
- + + $vari) { $kkv++; if ($vari['active'] == '1' && (!$this->hasMod('wpsg_mod_stock') || $vari['stock'] > 0)) { ?> @@ -109,12 +110,13 @@ $pbw = $this->get_option('wpsg_vp_imageselect_width'); $pbh = $this->get_option('wpsg_vp_imageselect_height'); ?> - + - + +
@@ -186,7 +188,14 @@ jQuery(document).ready(function() { jQuery('.wpsg_vp_update').off('change').on('change', wpsg_mod_productvariants_reload); - + + jQuery('.wpsg_vp_update_image').on('click', function(event) { + + jQuery(this).closest('span').find('input').val(jQuery(this).data('wpsg-id')); + wpsg_mod_productvariants_reload(event); + + } ); + } ); /* ]]> */ diff --git a/views/mods/mod_voucherproduct/produkt_edit_sidebar.phtml b/views/mods/mod_voucherproduct/produkt_edit_sidebar.phtml index 062d87a..856ecb0 100644 --- a/views/mods/mod_voucherproduct/produkt_edit_sidebar.phtml +++ b/views/mods/mod_voucherproduct/produkt_edit_sidebar.phtml @@ -12,9 +12,12 @@
- view['data']['wpsg_mod_voucherproduct_gs']); ?> - view['data']['wpsg_mod_voucherproduct_gslaenge'] > 0)?$this->view['data']['wpsg_mod_voucherproduct_gslaenge']:10)); ?> - view['data']['wpsg_mod_voucherproduct_available']); ?> + view['data']['wpsg_mod_voucherproduct_gs'])) + echo wpsg_drawForm_Checkbox('wpsg_mod_voucherproduct_gs', __('Gutschein generieren', 'wpsg'), $this->view['data']['wpsg_mod_voucherproduct_gs']); ?> + view['data']['wpsg_mod_voucherproduct_gslaenge'])) + echo wpsg_drawForm_Input('wpsg_mod_voucherproduct_gslaenge', __('Länge des Gutscheincodes', 'wpsg'), (($this->view['data']['wpsg_mod_voucherproduct_gslaenge'] > 0)?$this->view['data']['wpsg_mod_voucherproduct_gslaenge']:10)); ?> + view['data']['wpsg_mod_voucherproduct_available'])) + echo wpsg_drawForm_Input('wpsg_mod_voucherproduct_available', __('Gültigkeit (Tage)', 'wpsg'), $this->view['data']['wpsg_mod_voucherproduct_available']); ?>

diff --git a/views/mods/mod_weight/settings_edit.phtml b/views/mods/mod_weight/settings_edit.phtml index bd703a7..750b2bb 100644 --- a/views/mods/mod_weight/settings_edit.phtml +++ b/views/mods/mod_weight/settings_edit.phtml @@ -12,7 +12,8 @@ get_option('wpsg_mod_weight_showBasketProduct'), array('help' => 'wpsg_mod_weight_showBasketProduct')); ?> get_option('wpsg_mod_weight_showOverview'), array('help' => 'wpsg_mod_weight_showOverview')); ?> get_option('wpsg_mod_weight_showOverviewProduct'), array('help' => 'wpsg_mod_weight_showOverviewProduct')); ?> -hasMod('wpsg_mod_productindex')) { ?> + +hasMod('wpsg_mod_productindex')) { ?> get_option('wpsg_mod_weight_showProductindex'), array('help' => 'wpsg_mod_weight_showProductindex')); ?> hasMod('wpsg_mod_request')) { ?> -- cgit v1.2.3