From 7e195267157bb20571084e710cafb4bd41de3738 Mon Sep 17 00:00:00 2001 From: hartmut Date: Thu, 7 Dec 2017 15:02:02 +0000 Subject: Bestellverwaltung Bestelldaten neu berechnen und in Tabelle Order schreiben git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6799 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/order/view.phtml | 4 ++-- views/order/view_orderdata.phtml | 24 ++++++++++++------------ 2 files changed, 14 insertions(+), 14 deletions(-) (limited to 'views') diff --git a/views/order/view.phtml b/views/order/view.phtml index ace618b..c63efc6 100644 --- a/views/order/view.phtml +++ b/views/order/view.phtml @@ -125,7 +125,7 @@ jQuery('#wpsg_produkte_table').html('<?php echo __('Bitte warten ...', 'wpsg'); ?>'); jQuery.ajax( { - url: 'wp-admin/admin.php?page=wpsg-Admin&subaction=discountData&do=add&edit_id=' + oid + '&noheader=1', + url: 'wp-admin/admin.php?page=wpsg-Order&subaction=discountData&do=add&edit_id=' + oid + '&noheader=1', success: function(data) { jQuery('#wpsg_produkte_table').replaceWith(data); jQuery('#LinkRabattNeu').hide(); @@ -145,7 +145,7 @@ jQuery('#wpsg_produkte_table').html('<?php echo __('Bitte warten ...', 'wpsg'); ?>'); jQuery.ajax( { - url: 'wp-admin/admin.php?page=wpsg-Admin&subaction=voucherData&do=add&edit_id=' + oid + '&noheader=1', + url: 'wp-admin/admin.php?page=wpsg-Order&subaction=voucherData&do=add&edit_id=' + oid + '&noheader=1', success: function(data) { jQuery('#wpsg_produkte_table').replaceWith(data); jQuery('#LinkGutscheinNeu').hide(); diff --git a/views/order/view_orderdata.phtml b/views/order/view_orderdata.phtml index c1fa297..f940104 100644 --- a/views/order/view_orderdata.phtml +++ b/views/order/view_orderdata.phtml @@ -203,7 +203,7 @@ hasMod('wpsg_mod_gutschein')) { ?> view['basket'])) && ($this->view['basket']['gs']['value'] > 0)) { ?> - jQuery('#gsname_').wpsg_editable('wp-admin/admin.php?page=wpsg-Admin&subaction=voucherData&do=editname&noheader=1', { + jQuery('#gsname_').wpsg_editable('wp-admin/admin.php?page=wpsg-Order&subaction=voucherData&do=editname&noheader=1', { submitdata: { field: 'code', gs_id: '', @@ -218,7 +218,7 @@ } }); - jQuery('#gsvalue_').wpsg_editable('wp-admin/admin.php?page=wpsg-Admin&subaction=voucherData&do=editvalue&noheader=1', { + jQuery('#gsvalue_').wpsg_editable('wp-admin/admin.php?page=wpsg-Order&subaction=voucherData&do=editvalue&noheader=1', { submitdata: { field: 'value', gs_id: '', @@ -242,7 +242,7 @@ hasMod('wpsg_mod_discount')) { ?> view['basket']['sum']['preis_rabatt']) && $this->view['basket']['sum']['preis_rabatt'] > 0) { ?> - jQuery('#discountvalue_').wpsg_editable('wp-admin/admin.php?page=wpsg-Admin&subaction=discountData&do=editvalue&noheader=1', { + jQuery('#discountvalue_').wpsg_editable('wp-admin/admin.php?page=wpsg-Order&subaction=discountData&do=editvalue&noheader=1', { submitdata: { field: 'value', edit_id: '', @@ -273,7 +273,7 @@ jQuery('#wpsg_produkte_table').html('<?php echo __('Bitte warten ...', 'wpsg'); ?>'); jQuery.ajax( { - url: 'wp-admin/admin.php?page=wpsg-Admin&subaction=voucherData&do=remove&gs_id=' + gs_id + '&edit_id=' + o_id +'&noheader=1', + url: 'wp-admin/admin.php?page=wpsg-Order&subaction=voucherData&do=remove&gs_id=' + gs_id + '&edit_id=' + o_id +'&noheader=1', success: function(data) { jQuery('#wpsg_produkte_table').replaceWith(data); jQuery('#LinkGutscheinNeu').show(); @@ -294,7 +294,7 @@ jQuery('#wpsg_produkte_table').html('<?php echo __('Bitte warten ...', 'wpsg'); ?>'); jQuery.ajax( { - url: 'wp-admin/admin.php?page=wpsg-Admin&subaction=discountData&do=remove&edit_id=' + o_id +'&noheader=1', + url: 'wp-admin/admin.php?page=wpsg-Order&subaction=discountData&do=remove&edit_id=' + o_id +'&noheader=1', success: function(data) { jQuery('#wpsg_produkte_table').replaceWith(data); jQuery('#LinkRabattNeu').show(); @@ -395,7 +395,7 @@ pval = jQuery('#zahlungsartvalue').val(); //alert('delete : ' + pid + ' / ' + pval); - url1 = 'wp-admin/admin.php?page=wpsg-Admin&subaction=paymentData&do=delete&edit_id=' + this.oid + '&p_id=' + pid + '&noheader=1'; + url1 = 'wp-admin/admin.php?page=wpsg-Order&subaction=paymentData&do=delete&edit_id=' + this.oid + '&p_id=' + pid + '&noheader=1'; jQuery.ajax( { url: '' + url1, success: function(data) { @@ -429,7 +429,7 @@ } //alert('OK neu: ' + pid + ' / ' + pval); - url1 = 'wp-admin/admin.php?page=wpsg-Admin&subaction=paymentData&do=change&edit_id=' + this.oid + '&p_id=' + pid + '&p_value=' + pval + '&noheader=1'; + url1 = 'wp-admin/admin.php?page=wpsg-Order&subaction=paymentData&do=change&edit_id=' + this.oid + '&p_id=' + pid + '&p_value=' + pval + '&noheader=1'; jQuery.ajax( { url: '' + url1, data: { @@ -507,7 +507,7 @@ sval = jQuery('#versandartvalue').val(); //alert('delete : ' + sid + ' / ' + sval); - url1 = 'wp-admin/admin.php?page=wpsg-Admin&subaction=shippingData&do=delete&edit_id=' + this.oid + '&s_id=' + sid + '&noheader=1'; + url1 = 'wp-admin/admin.php?page=wpsg-Order&subaction=shippingData&do=delete&edit_id=' + this.oid + '&s_id=' + sid + '&noheader=1'; jQuery.ajax( { url: '' + url1, success: function(data) { @@ -541,7 +541,7 @@ } //alert('OK neu: ' + sid + ' / ' + sval); - url1 = 'wp-admin/admin.php?page=wpsg-Admin&subaction=shippingData&do=change&edit_id=' + this.oid + '&s_id=' + sid + '&s_value=' + sval + '&noheader=1'; + url1 = 'wp-admin/admin.php?page=wpsg-Order&subaction=shippingData&do=change&edit_id=' + this.oid + '&s_id=' + sid + '&s_value=' + sval + '&noheader=1'; jQuery.ajax( { url: '' + url1, data: { @@ -611,7 +611,7 @@ jQuery('#wpsg_produkte_table').html('<?php echo __('Bitte warten ...', 'wpsg'); ?>'); jQuery.ajax( { - url: 'wp-admin/admin.php?page=wpsg-Admin&subaction=productData&do=remove&edit_id=' + o_id + '&op_id=' + op_id + '&noheader=1', + url: 'wp-admin/admin.php?page=wpsg-Order&subaction=productData&do=remove&edit_id=' + o_id + '&op_id=' + op_id + '&noheader=1', success: function (data) { jQuery('#wpsg_produkte_table').replaceWith(data); } @@ -728,7 +728,7 @@ //alert('OK neu: ' + pid + ' / ' + pval); if (this.modus == 0) { - url1 = 'wp-admin/admin.php?page=wpsg-Admin&subaction=productData&do=change&edit_id=' + this.o_id + '&op_id=' + this.op_id + '&p_id=' + pid + '&noheader=1'; + url1 = 'wp-admin/admin.php?page=wpsg-Order&subaction=productData&do=change&edit_id=' + this.o_id + '&op_id=' + this.op_id + '&p_id=' + pid + '&noheader=1'; jQuery.ajax( { url: '' + url1, data: { @@ -748,7 +748,7 @@ } else { // Neues Produkt hinzufügen jQuery.ajax( { - url: 'wp-admin/admin.php?page=wpsg-Admin&subaction=productData&do=add&edit_id=' + this.o_id + '&p_id=' + pid + '&noheader=1', + url: 'wp-admin/admin.php?page=wpsg-Order&subaction=productData&do=add&edit_id=' + this.o_id + '&p_id=' + pid + '&noheader=1', data: { p_val: pval, p_me: pme, -- cgit v1.2.3