Subversion Repositories wpShopGermany4

Rev

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

Rev 6799 Rev 6846
Line 231... Line 231...
231
		placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
231
		placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
232
		indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
232
		indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
233
    	tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
233
    	tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
234
    	callback: function(data, config) {
234
    	callback: function(data, config) {
235
    		jQuery('#wpsg_produkte_table').replaceWith(data);
235
    		jQuery('#wpsg_produkte_table').replaceWith(data);
-
 
236
    		wpsg_be_act_orderdata();
236
    	}
237
    	}
237
	});
238
	});
238
 
239
 
239
	<?php } ?>
240
	<?php } ?>
240
<?php } ?>
241
<?php } ?>
Line 254... Line 255...
254
		placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
255
		placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
255
		indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
256
		indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
256
    	tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
257
    	tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
257
    	callback: function(data, config) {
258
    	callback: function(data, config) {
258
    		jQuery('#wpsg_produkte_table').replaceWith(data);
259
    		jQuery('#wpsg_produkte_table').replaceWith(data);
-
 
260
    		wpsg_be_act_orderdata();
259
    	}
261
    	}
260
	});
262
	});
261
 
263
 
262
	<?php } ?>
264
	<?php } ?>
263
<?php } ?>
265
<?php } ?>
Line 275... Line 277...
275
		jQuery.ajax( {
277
		jQuery.ajax( {
276
			url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&subaction=voucherData&do=remove&gs_id=' + gs_id + '&edit_id=' + o_id +'&noheader=1',
278
			url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&subaction=voucherData&do=remove&gs_id=' + gs_id + '&edit_id=' + o_id +'&noheader=1',
277
			success: function(data) {
279
			success: function(data) {
278
				jQuery('#wpsg_produkte_table').replaceWith(data);
280
				jQuery('#wpsg_produkte_table').replaceWith(data);
279
				jQuery('#LinkGutscheinNeu').show();
281
				jQuery('#LinkGutscheinNeu').show();
-
 
282
	    		wpsg_be_act_orderdata();
280
			}
283
			}
281
		} );
284
		} );
282
 
285
 
283
		return false;
286
		return false;
284
	}
287
	}
Line 296... Line 299...
296
		jQuery.ajax( {
299
		jQuery.ajax( {
297
			url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&subaction=discountData&do=remove&edit_id=' + o_id +'&noheader=1',
300
			url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&subaction=discountData&do=remove&edit_id=' + o_id +'&noheader=1',
298
			success: function(data) {
301
			success: function(data) {
299
				jQuery('#wpsg_produkte_table').replaceWith(data);
302
				jQuery('#wpsg_produkte_table').replaceWith(data);
300
				jQuery('#LinkRabattNeu').show();
303
				jQuery('#LinkRabattNeu').show();
-
 
304
	    		wpsg_be_act_orderdata();
301
			}
305
			}
302
		} );
306
		} );
303
 
307
 
304
		return false;
308
		return false;
305
	}
309
	}
306
 
310
 
-
 
311
	function wpsg_be_act_orderdata() {
-
 
312
 
-
 
313
		var o_id = 0;
-
 
314
		//alert('wpsg_be_act_orderdata');
-
 
315
		jQuery.ajax( {
-
 
316
			url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&subaction=orderData&do=actual&edit_id=' + o_id +'&noheader=1',
-
 
317
			success: function(data) {
-
 
318
				data = JSON.parse(data);
-
 
319
				jQuery('#wpsg_be_orderamount').html(data.preis);
-
 
320
				odata = data.vname + ' ' + data.name + ' / ' + data.preis;
-
 
321
				jQuery('#wpsg_be_orderdata').html(odata);
-
 
322
				
-
 
323
			}
-
 
324
		} );
-
 
325
 
-
 
326
 
-
 
327
		return false;
-
 
328
		
-
 
329
	}
-
 
330
	
307
    jQuery(document).ready(function() {
331
    jQuery(document).ready(function() {
308
		gs_id = <?php echo $gs_id; ?>;
332
		gs_id = <?php echo $gs_id; ?>;
309
		prval = <?php echo $prval; ?>;
333
		prval = <?php echo $prval; ?>;
310
 
334
 
311
		wpsg_view_orderdata_show();
335
		wpsg_view_orderdata_show();
Line 401... Line 425...
401
    				success: function(data) {
425
    				success: function(data) {
402
    					//jQuery('#wpsg_payment_dialog').modal('hide');
426
    					//jQuery('#wpsg_payment_dialog').modal('hide');
403
    					//jQuery('#wpsg_payment_dialog').hide();
427
    					//jQuery('#wpsg_payment_dialog').hide();
404
    					//jQuery('#wpsg_payment_dialog').modal( { } ).modal('hide');
428
    					//jQuery('#wpsg_payment_dialog').modal( { } ).modal('hide');
405
    					jQuery('#wpsg_produkte_table').replaceWith(data);
429
    					jQuery('#wpsg_produkte_table').replaceWith(data);
-
 
430
    					wpsg_be_act_orderdata();
406
    			    }
431
    			    }
407
    			} );
432
    			} );
408
 
433
 
409
    			return false;
434
    			return false;
410
 
435
 
Line 439... Line 464...
439
    				success: function(data) {
464
    				success: function(data) {
440
    					//jQuery('#wpsg_payment_dialog').modal('hide');
465
    					//jQuery('#wpsg_payment_dialog').modal('hide');
441
    					//jQuery('#wpsg_payment_dialog').hide();
466
    					//jQuery('#wpsg_payment_dialog').hide();
442
    					//jQuery('#wpsg_payment_dialog').modal( { } ).modal('hide');
467
    					//jQuery('#wpsg_payment_dialog').modal( { } ).modal('hide');
443
    					jQuery('#wpsg_produkte_table').replaceWith(data);
468
    					jQuery('#wpsg_produkte_table').replaceWith(data);
-
 
469
    					wpsg_be_act_orderdata();
444
    			    }
470
    			    }
445
    			} );
471
    			} );
446
 
472
 
447
    			return false;
473
    			return false;
448
 
474
 
Line 513... Line 539...
513
    				success: function(data) {
539
    				success: function(data) {
514
    					//jQuery('#wpsg_payment_dialog').modal('hide');
540
    					//jQuery('#wpsg_payment_dialog').modal('hide');
515
    					//jQuery('#wpsg_payment_dialog').hide();
541
    					//jQuery('#wpsg_payment_dialog').hide();
516
    					//jQuery('#wpsg_payment_dialog').modal( { } ).modal('hide');
542
    					//jQuery('#wpsg_payment_dialog').modal( { } ).modal('hide');
517
    					jQuery('#wpsg_produkte_table').replaceWith(data);
543
    					jQuery('#wpsg_produkte_table').replaceWith(data);
-
 
544
    		    		wpsg_be_act_orderdata();
518
    			    }
545
    			    }
519
    			} );
546
    			} );
520
 
547
 
521
    			return false;
548
    			return false;
522
 
549
 
Line 547... Line 574...
547
    				data: {
574
    				data: {
548
    					price_frontend: '<?php echo $this->view['basket']['price_frontend']; ?>',
575
    					price_frontend: '<?php echo $this->view['basket']['price_frontend']; ?>',
549
    					mwst: '<?php reset($this->view['basket']['mwst']); echo key($this->view['basket']['mwst']); ?>',
576
    					mwst: '<?php reset($this->view['basket']['mwst']); echo key($this->view['basket']['mwst']); ?>',
550
    					noMwSt: '<?php echo $this->view['basket']['noMwSt']; ?>' },
577
    					noMwSt: '<?php echo $this->view['basket']['noMwSt']; ?>' },
551
    				success: function(data) {
578
    				success: function(data) {
552
    					//jQuery('#wpsg_payment_dialog').modal('hide');
-
 
553
    					//jQuery('#wpsg_payment_dialog').hide();
579
        				//alert(data);
554
    					//jQuery('#wpsg_payment_dialog').modal( { } ).modal('hide');
-
 
555
    					jQuery('#wpsg_produkte_table').replaceWith(data);
580
    					jQuery('#wpsg_produkte_table').replaceWith(data);
-
 
581
    					wpsg_be_act_orderdata();
556
    			    }
582
    			    }
557
    			} );
583
    			} );
558
 
584
 
559
    			return false;
585
    			return false;
560
 
586
 
Line 612... Line 638...
612
 
638
 
613
    		jQuery.ajax( {
639
    		jQuery.ajax( {
614
    			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',
640
    			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',
615
    			success: function (data) {
641
    			success: function (data) {
616
    				jQuery('#wpsg_produkte_table').replaceWith(data);
642
    				jQuery('#wpsg_produkte_table').replaceWith(data);
-
 
643
    	    		wpsg_be_act_orderdata();
617
    			}
644
    			}
618
    		} );
645
    		} );
619
 
646
 
620
    		return false;
647
    		return false;
621
    	},	// function removeProduct
648
    	},	// function removeProduct
Line 741... Line 768...
741
					success: function(data) {
768
					success: function(data) {
742
						//jQuery('#wpsg_payment_dialog').modal('hide');
769
						//jQuery('#wpsg_payment_dialog').modal('hide');
743
						//jQuery('#wpsg_payment_dialog').hide();
770
						//jQuery('#wpsg_payment_dialog').hide();
744
						//jQuery('#wpsg_payment_dialog').modal( { } ).modal('hide');
771
						//jQuery('#wpsg_payment_dialog').modal( { } ).modal('hide');
745
						jQuery('#wpsg_produkte_table').replaceWith(data);
772
						jQuery('#wpsg_produkte_table').replaceWith(data);
-
 
773
			    		wpsg_be_act_orderdata();
746
				    }
774
				    }
747
				} );
775
				} );
748
			} else {
776
			} else {
749
				// Neues Produkt hinzufügen
777
				// Neues Produkt hinzufügen
750
	    		jQuery.ajax( {
778
	    		jQuery.ajax( {
Line 756... Line 784...
756
						mwst: this.mwst1,
784
						mwst: this.mwst1,
757
						noMwSt: this.noMwSt,
785
						noMwSt: this.noMwSt,
758
						p_mwst: pmwst},
786
						p_mwst: pmwst},
759
	    			success: function(data) {
787
	    			success: function(data) {
760
	    				jQuery('#wpsg_produkte_table').replaceWith(data);
788
	    				jQuery('#wpsg_produkte_table').replaceWith(data);
-
 
789
	    	    		wpsg_be_act_orderdata();
761
	    				//jQuery('#LinkRabattNeu').hide();
790
	    				//jQuery('#LinkRabattNeu').hide();
762
	    			}
791
	    			}
763
	    		} );
792
	    		} );
764
			}
793
			}
765
			return false;
794
			return false;