Subversion Repositories wpShopGermany4

Rev

Rev 7179 | Rev 7486 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7179 Rev 7210
Line 15... Line 15...
15
        <?php $this->render(WPSG_PATH_VIEW.'order/product_table.phtml'); ?>
15
        <?php $this->render(WPSG_PATH_VIEW.'order/product_table.phtml'); ?>
16
    </div>
16
    </div>
17
 
17
 
18
	<script type="text/javascript">
18
	<script type="text/javascript">
19
	
19
	
-
 
20
		var WPSG_BE = {
-
 
21
			
-
 
22
			updateCalculation: function() {
-
 
23
 
-
 
24
				var tax_mode = jQuery('#tax_mode').val();
-
 
25
				
-
 
26
				jQuery('#wpsg_product_table_wrap').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
-
 
27
 
-
 
28
				jQuery.ajax( {
-
 
29
					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']; ?>',
-
 
30
					data: {
-
 
31
						tax_mode: tax_mode
-
 
32
					},
-
 
33
					success: function(data) {
-
 
34
 
-
 
35
						jQuery('#wpsg_product_table_wrap').html(data.product_table);
-
 
36
 
-
 
37
					}
-
 
38
				} );
-
 
39
 
-
 
40
				return false;
-
 
41
				
-
 
42
			}
-
 
43
			
-
 
44
		};
-
 
45
		
20
		var WPSG_BE_Pay_Ship = {
46
		var WPSG_BE_Pay_Ship = {
21
				 
47
				 
22
			changeShippingPayment: function (id, oid) {
48
			changeShippingPayment: function (id, oid) {
23
	
49
	
24
				jQuery('#wpsg_shipping_dialog .modal-body').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
50
				jQuery('#wpsg_shipping_dialog .modal-body').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
Line 88... Line 114...
88
				} );
114
				} );
89
		
115
		
90
				return false;
116
				return false;
91
				
117
				
92
			},
118
			},
93
			
119
 
94
			remvoeProduct: function(order_product_id) {
120
			removeProduct: function(order_product_id) {
95
	
121
	
96
				jQuery('#wpsg_product_table_wrap').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
122
				jQuery('#wpsg_product_table_wrap').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
97
				
123
				
98
				jQuery.ajax( {
124
				jQuery.ajax( {
99
					url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=view&subaction=removeProduct&noheader=1&edit_id=<?php echo $_REQUEST['edit_id']; ?>',
125
					url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=view&subaction=removeProduct&noheader=1&edit_id=<?php echo $_REQUEST['edit_id']; ?>',