Subversion Repositories SmartDukaan

Rev

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

Rev 18760 Rev 18761
Line 622... Line 622...
622
		            if(payOption=='cod'){
622
		            if(payOption=='cod'){
623
		                confirmCheckout(msg);
623
		                confirmCheckout(msg);
624
		            } else if (payOption=='other_option'){
624
		            } else if (payOption=='other_option'){
625
		                confirmPrepaid(msg);
625
		                confirmPrepaid(msg);
626
		            } else if(payOption=='add'){
626
		            } else if(payOption=='add'){
627
		            	window.location.replace(apihost + "shippings/index/");
627
		            	var url = apihost + 'shippings/';
-
 
628
		        	    var newForm = $('<form>', {
-
 
629
		        	        'action': url,
-
 
630
		        	        'method':'post'
-
 
631
		        	    }).append($('<input>', {
-
 
632
		        	        'name': 'cart_details',
-
 
633
		        	        'value': localStorage.getItem('cart_details'),
-
 
634
		        	        'type': 'hidden'
-
 
635
		        	    }));
-
 
636
		        	    newForm.submit();
628
		    		}
637
		    		}
629
		        }                           
638
		        }                           
630
		    });
639
		    });
631
		    return false;
640
		    return false;
632
	}
641
	}