diff options
Diffstat (limited to 'views/order/view_orderdata.phtml')
| -rw-r--r-- | views/order/view_orderdata.phtml | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/views/order/view_orderdata.phtml b/views/order/view_orderdata.phtml index 84c6dc2..69df736 100644 --- a/views/order/view_orderdata.phtml +++ b/views/order/view_orderdata.phtml @@ -17,6 +17,32 @@ <script type="text/javascript">
+ var WPSG_BE = {
+
+ updateCalculation: function() {
+
+ var tax_mode = jQuery('#tax_mode').val();
+
+ jQuery('#wpsg_product_table_wrap').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
+
+ jQuery.ajax( {
+ url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=view&subaction=updateCalculation&noheader=1&edit_id=<?php echo $_REQUEST['edit_id']; ?>',
+ data: {
+ tax_mode: tax_mode
+ },
+ success: function(data) {
+
+ jQuery('#wpsg_product_table_wrap').html(data.product_table);
+
+ }
+ } );
+
+ return false;
+
+ }
+
+ };
+
var WPSG_BE_Pay_Ship = {
changeShippingPayment: function (id, oid) {
@@ -90,8 +116,8 @@ return false;
},
-
- remvoeProduct: function(order_product_id) {
+
+ removeProduct: function(order_product_id) {
jQuery('#wpsg_product_table_wrap').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
|
