diff options
Diffstat (limited to 'views/order/view_orderdata.phtml')
| -rw-r--r-- | views/order/view_orderdata.phtml | 35 |
1 files changed, 32 insertions, 3 deletions
diff --git a/views/order/view_orderdata.phtml b/views/order/view_orderdata.phtml index f940104..26ae631 100644 --- a/views/order/view_orderdata.phtml +++ b/views/order/view_orderdata.phtml @@ -233,6 +233,7 @@ tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
callback: function(data, config) {
jQuery('#wpsg_produkte_table').replaceWith(data);
+ wpsg_be_act_orderdata();
}
});
@@ -256,6 +257,7 @@ tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
callback: function(data, config) {
jQuery('#wpsg_produkte_table').replaceWith(data);
+ wpsg_be_act_orderdata();
}
});
@@ -277,6 +279,7 @@ success: function(data) {
jQuery('#wpsg_produkte_table').replaceWith(data);
jQuery('#LinkGutscheinNeu').show();
+ wpsg_be_act_orderdata();
}
} );
@@ -298,12 +301,33 @@ success: function(data) {
jQuery('#wpsg_produkte_table').replaceWith(data);
jQuery('#LinkRabattNeu').show();
+ wpsg_be_act_orderdata();
}
} );
return false;
}
+ function wpsg_be_act_orderdata() {
+
+ var o_id = 0;
+ //alert('wpsg_be_act_orderdata');
+ jQuery.ajax( {
+ url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&subaction=orderData&do=actual&edit_id=' + o_id +'&noheader=1',
+ success: function(data) {
+ data = JSON.parse(data);
+ jQuery('#wpsg_be_orderamount').html(data.preis);
+ odata = data.vname + ' ' + data.name + ' / ' + data.preis;
+ jQuery('#wpsg_be_orderdata').html(odata);
+
+ }
+ } );
+
+
+ return false;
+
+ }
+
jQuery(document).ready(function() {
gs_id = <?php echo $gs_id; ?>;
prval = <?php echo $prval; ?>;
@@ -403,6 +427,7 @@ //jQuery('#wpsg_payment_dialog').hide();
//jQuery('#wpsg_payment_dialog').modal( { } ).modal('hide');
jQuery('#wpsg_produkte_table').replaceWith(data);
+ wpsg_be_act_orderdata();
}
} );
@@ -441,6 +466,7 @@ //jQuery('#wpsg_payment_dialog').hide();
//jQuery('#wpsg_payment_dialog').modal( { } ).modal('hide');
jQuery('#wpsg_produkte_table').replaceWith(data);
+ wpsg_be_act_orderdata();
}
} );
@@ -515,6 +541,7 @@ //jQuery('#wpsg_payment_dialog').hide();
//jQuery('#wpsg_payment_dialog').modal( { } ).modal('hide');
jQuery('#wpsg_produkte_table').replaceWith(data);
+ wpsg_be_act_orderdata();
}
} );
@@ -549,10 +576,9 @@ mwst: '<?php reset($this->view['basket']['mwst']); echo key($this->view['basket']['mwst']); ?>',
noMwSt: '<?php echo $this->view['basket']['noMwSt']; ?>' },
success: function(data) {
- //jQuery('#wpsg_payment_dialog').modal('hide');
- //jQuery('#wpsg_payment_dialog').hide();
- //jQuery('#wpsg_payment_dialog').modal( { } ).modal('hide');
+ //alert(data);
jQuery('#wpsg_produkte_table').replaceWith(data);
+ wpsg_be_act_orderdata();
}
} );
@@ -614,6 +640,7 @@ url: '<?php echo WPSG_URL_WP; ?>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);
+ wpsg_be_act_orderdata();
}
} );
@@ -743,6 +770,7 @@ //jQuery('#wpsg_payment_dialog').hide();
//jQuery('#wpsg_payment_dialog').modal( { } ).modal('hide');
jQuery('#wpsg_produkte_table').replaceWith(data);
+ wpsg_be_act_orderdata();
}
} );
} else {
@@ -758,6 +786,7 @@ p_mwst: pmwst},
success: function(data) {
jQuery('#wpsg_produkte_table').replaceWith(data);
+ wpsg_be_act_orderdata();
//jQuery('#LinkRabattNeu').hide();
}
} );
|
