Subversion Repositories SmartDukaan

Rev

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

Rev 2030 Rev 2036
Line 233... Line 233...
233
    	 jQuery.ajax({
233
    	 jQuery.ajax({
234
    		 type: "POST",
234
    		 type: "POST",
235
    		 url: "/addtocart",
235
    		 url: "/addtocart",
236
    		 data: "productid=" + seldata,
236
    		 data: "productid=" + seldata,
237
    		 success: function(msg){
237
    		 success: function(msg){
238
    			 $("#cartItemCount").html(msg * 1);
238
    			 if(msg==""){
239
    			 window.location = "/cart";
239
    				 window.location = "/cart";
-
 
240
    			 }else{
-
 
241
    				 alert(msg);
-
 
242
    			 }
240
    		 }
243
    		 }
241
    	 });
244
    	 });
242
     } else	{
245
     } else	{
243
    	 alert("Please select atleast one product");
246
    	 alert("Please select atleast one product");
244
     }
247
     }