Subversion Repositories SmartDukaan

Rev

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

Rev 2511 Rev 2949
Line 73... Line 73...
73
			if(defaultAddressId > 0)
73
			if(defaultAddressId > 0)
74
				userClient.addAddressToCart(cartId, defaultAddressId);
74
				userClient.addAddressToCart(cartId, defaultAddressId);
75
			errorMsg = userClient.validateCart(cartId);
75
			errorMsg = userClient.validateCart(cartId);
76
			
76
			
77
		} catch (Exception e) {
77
		} catch (Exception e) {
78
			// This exception can be ignored for showing the cart. Not so
78
			// This exception can be ignored for showing the shipping page. Not so
79
			// innocent when this occurs at the time of checkout or when the
79
			// innocent when this occurs at the time of checkout or when the
80
			// user is proceeding to pay.
80
			// user is proceeding to pay.
81
			e.printStackTrace();
81
			log.error("Unable to get all the data required for displaying the shipping page", e);
82
		}
82
		}
83
    	// in case this page is redirected from payment failure
83
    	// in case this page is redirected from payment failure
84
		
84
		
85
		Collection<String> actionErrors = getActionErrors();
85
		Collection<String> actionErrors = getActionErrors();
86
		if(actionErrors != null && !actionErrors.isEmpty()){
86
		if(actionErrors != null && !actionErrors.isEmpty()){
Line 242... Line 242...
242
			String couponCode = cart.getCouponCode();
242
			String couponCode = cart.getCouponCode();
243
	        context.put("couponcode", couponCode == null ? "" : couponCode);
243
	        context.put("couponcode", couponCode == null ? "" : couponCode);
244
	        context.put("discountedamount", formattingUtils.formatPrice(cart.getDiscountedPrice()));
244
	        context.put("discountedamount", formattingUtils.formatPrice(cart.getDiscountedPrice()));
245
	        
245
	        
246
		} catch (Exception e)	{
246
		} catch (Exception e)	{
247
			e.printStackTrace();
247
			log.error("Unable to get the shipping details", e);
248
		}
248
		}
249
		System.out.println(fullName + " | " + phoneNumber);
249
		System.out.println(fullName + " | " + phoneNumber);
250
        
250
        
251
		context.put("fullname", fullName);
251
		context.put("fullname", fullName);
252
		context.put("phonenumber", phoneNumber);
252
		context.put("phonenumber", phoneNumber);