Subversion Repositories SmartDukaan

Rev

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

Rev 6434 Rev 6438
Line 238... Line 238...
238
    		String original_referer = "http://www.saholic.com/recharge-result?paymentId=" + this.request.getParameter("paymentId");
238
    		String original_referer = "http://www.saholic.com/recharge-result?paymentId=" + this.request.getParameter("paymentId");
239
    		String fbUrl = "";
239
    		String fbUrl = "";
240
    		String twitterUrl = "";
240
    		String twitterUrl = "";
241
    		String shareMsg = "";
241
    		String shareMsg = "";
242
    		String giftMessage = "Congratulations! Your device is successfully recharged.";
242
    		String giftMessage = "Congratulations! Your device is successfully recharged.";
243
    		if(rechargeOrder.getTotalAmount()>=100){
-
 
244
    			if(rechargeOrder.getTotalAmount()>=500){
-
 
245
    			    shareMsg = "I just recharged my " + operator + " at Saholic.com and got Rs.500 cashback";
243
    	    shareMsg = "I just recharged my " + operator + " at Saholic.com and am happy with their services.";
246
    				fbUrl = "http://www.facebook.com/dialog/feed?app_id=291830044248933&link=www.saholic.com/recharge?afid=61&picture=http://i1074.photobucket.com/albums/w407/amathur2k/logo_saholic.png&name=" + shareMsg + "&caption=Win Assured Gift Coupons worth upto Rs.500 on every Mobile or DTH Recharge&description=One Click Hassle Free Recharges&redirect_uri=http://saholic.com/?shared=1";
244
			fbUrl = "http://www.facebook.com/dialog/feed?app_id=291830044248933&link=www.saholic.com/recharge?afid=61&picture=http://i1074.photobucket.com/albums/w407/amathur2k/logo_saholic.png&name=" + shareMsg + "&caption=One Click Hassle Free Mobile & DTH Recharges&description=&redirect_uri=http://saholic.com/?shared=1";
247
    				twitterUrl = "https://twitter.com/intent/tweet?hashtags=saholic&original_referer=" + original_referer + "&related=saholic&source=saholic.com&text=" + shareMsg + "&url=http://www.saholic.com/recharge/afid?64&via=saholic";
245
			twitterUrl = "https://twitter.com/intent/tweet?hashtags=saholic&original_referer=" + original_referer + "&related=saholic&source=saholic.com&text=" + shareMsg + "&url=http://www.saholic.com/recharge/afid?64&via=saholic";
248
    				giftMessage = "Congratulations! Your device is successfully recharged and you have " +
246
			giftMessage = "Congratulations! Your device is successfully recharged. Do visit us again to recharge, or to buy Mobile Phones, Cameras, Laptops and Accessories." +
249
    						"won Gift Coupons worth Rs.500 which you can use to shop for Mobiles, Laptops, Cameras, Accessories.<br><br>" +
-
 
250
    						"Voucher details have been sent to your email.<a target='_blank' href='/static/giftvoucher-offer'> Learn more.</a>" +
247
					"Voucher details have been sent to your email.<a target='_blank' href='/static/giftvoucher-offer'> Learn more.</a>" +
251
                            "<br><br>Please help us spread the word." +
248
                    "Advertising is expensive !<br>If you like our site, please help us spread the word by Tweeting and posting to Facebook." +
252
    						"<div style=\"margin-top: 40px;text-align: center;\">" +
249
					"<div style=\"margin-top: 40px;text-align: center;\">" +
253
    						"<a target='_blank' href='" + twitterUrl + "'>" + 
250
					"<a target='_blank' href='" + twitterUrl + "'>" + 
254
    								"<input type='button' onclick=\"trackEventWithGA('Recharge', 'Twitter Share', '')\" style=\"background: url('/images/tweet-about-us.png') 0px 1px;width: 160px;height: 40px;margin-right: 40px;\"></a>" +
251
							"<input type='button' onclick=\"trackEventWithGA('Recharge', 'Twitter Share', '')\" style=\"background: url('/images/tweet-about-us.png') 0px 1px;width: 160px;height: 40px;margin-right: 40px;\"></a>" +
255
    						"<a target='_blank' href='" + fbUrl + "'>" +
252
					"<a target='_blank' href='" + fbUrl + "'>" +
256
    								"<input type=\"button\" onclick=\"trackEventWithGA('Recharge', 'Facebook Share', '');\" style=\"background:url('/images/Post-On-Facebook.jpg');width: 160px;height: 40px;\">" +
253
							"<input type=\"button\" onclick=\"trackEventWithGA('Recharge', 'Facebook Share', '');\" style=\"background:url('/images/Post-On-Facebook.jpg');width: 160px;height: 40px;\">" +
257
    								"</a></div>";
-
 
258
    			}else{
-
 
259
    			    
-
 
260
    			    
-
 
261
    			    
-
 
262
    			    
-
 
263
    			    shareMsg = "I just recharged my " + operator + " at Saholic.com and got full cashback";
-
 
264
    				fbUrl = "http://www.facebook.com/dialog/feed?app_id=291830044248933&link=www.saholic.com/recharge?afid=61&picture=http://i1074.photobucket.com/albums/w407/amathur2k/logo_saholic.png&name=" + shareMsg + "&caption=Win Assured Gift Coupons worth upto Rs.500 on every Mobile or DTH Recharge&description=One Click Hassle Free Recharges&redirect_uri=http://saholic.com/?shared=1";
254
							"</a></div>";
265
    				twitterUrl = "https://twitter.com/intent/tweet?hashtags=saholic&original_referer=" + original_referer + "&related=saholic&source=saholic.com&text=" + shareMsg + "&url=http://www.saholic.com/recharge?afid=64&via=saholic";
-
 
266
    				giftMessage = "Congratulations! Your device is successfully recharged and you have " +
-
 
267
    						"won Gift Coupons worth Rs." + rechargeOrder.getTotalAmount() + " which you can use to shop for Mobiles, Laptops, Cameras, Accessories.<br><br>" +
-
 
268
    						"Voucher details have been sent to your email.<a target='_blank' href='/static/giftvoucher-offer'> Learn more.</a>" +
-
 
269
    						"<br><br>Please help us spread the word." +
-
 
270
    						"<div style=\"margin-top: 40px;text-align: center;\">" +
-
 
271
    						"<a target='_blank' href='" + twitterUrl + "'>" +
-
 
272
                            "<input type='button' onclick=\"trackEventWithGA('Recharge', 'Twitter Share', '')\" style=\"background: url('/unversioned/images/tweet-about-us.png') 0px 1px;width: 160px;height: 40px;margin-right: 40px;\"></a>" + 
-
 
273
                            "<a target='_blank' href='" + fbUrl + "'>" +
-
 
274
                                    "<input type=\"button\" onclick=\"trackEventWithGA('Recharge', 'Facebook Share', '');\" style=\"background:url('/unversioned/images/Post-On-Facebook.jpg');width: 160px;height: 40px;\">" +
-
 
275
                                    "</a></div>";
-
 
276
    			}
-
 
277
    		}
-
 
278
    		return new String[] {"", "SUCCESS", giftMessage};
255
		return new String[] {"", "SUCCESS", giftMessage};
279
    	}
256
    	}
280
    }
257
    }
281
}
258
}
282
259