Subversion Repositories SmartDukaan

Rev

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

Rev 18866 Rev 18867
Line 585... Line 585...
585
		        url:  apihost + "shippings/submitcheck",
585
		        url:  apihost + "shippings/submitcheck",
586
		        data: formData,
586
		        data: formData,
587
		    },'json')
587
		    },'json')
588
		    .done(function(msg){ 
588
		    .done(function(msg){ 
589
		        if(msg==''){    
589
		        if(msg==''){    
590
		            window.location.replace(apihost + "shippings/index/"+msg);
590
		        	var url = apihost + 'shippings/';
-
 
591
	        	    var newForm = $('<form>', {
-
 
592
	        	        'action': url,
-
 
593
	        	        'method':'post'
-
 
594
	        	    }).append($('<input>', {
-
 
595
	        	        'name': 'cart_details',
-
 
596
	        	        'value': localStorage.getItem('cart_details'),
-
 
597
	        	        'type': 'hidden'
-
 
598
	        	    }));
-
 
599
	        	    newForm.submit();
591
		        } else if(msg=='non_service'){
600
		        } else if(msg=='non_service'){
592
		        	window.location.replace(apihost + "shippings/index/"+msg);
601
		        	var url = apihost + 'shippings/';
-
 
602
	        	    var newForm = $('<form>', {
-
 
603
	        	        'action': url,
-
 
604
	        	        'method':'post'
-
 
605
	        	    }).append($('<input>', {
-
 
606
	        	        'name': 'cart_details',
593
		        	//window.location.replace(apihost + "cartdetails/?user_id="+me);
607
	        	        'value': localStorage.getItem('cart_details'),
-
 
608
	        	        'type': 'hidden'
-
 
609
	        	    }));
-
 
610
	        	    newForm.submit();
594
		        }
611
		        }
595
		        else {
612
		        else {
596
		            if(payOption=='cod'){
613
		            if(payOption=='cod'){
597
		                confirmCheckout(msg);
614
		                confirmCheckout(msg);
598
		            } else if (payOption=='other_option'){
615
		            } else if (payOption=='other_option'){