| Line 126... |
Line 126... |
| 126 |
#End:- Added By Manish Sharma for Creating a new Ticket: Category- RTO Refund on 21-Jun-2013
|
126 |
#End:- Added By Manish Sharma for Creating a new Ticket: Category- RTO Refund on 21-Jun-2013
|
| 127 |
logging.basicConfig(level=logging.DEBUG)
|
127 |
logging.basicConfig(level=logging.DEBUG)
|
| 128 |
|
128 |
|
| 129 |
sourceId = int(ConfigClient().get_property("sourceid"))
|
129 |
sourceId = int(ConfigClient().get_property("sourceid"))
|
| 130 |
capitalFloatPayMethod = 456789
|
130 |
capitalFloatPayMethod = 456789
|
| 131 |
SaholicHelpEmailId = "Saholic <help@saholic.com>"
|
131 |
SaholicHelpEmailId = "Profitmandi <care@profitmandi.com>"
|
| 132 |
mail_user = 'cnc.center@shop2020.in'
|
132 |
mail_user = 'cnc.center@shop2020.in'
|
| 133 |
mail_password = '5h0p2o2o'
|
133 |
mail_password = '5h0p2o2o'
|
| 134 |
help_user = 'help@shop2020.in'
|
134 |
help_user = 'help@shop2020.in'
|
| 135 |
help_password = '5h0p2o2o'
|
135 |
help_password = '5h0p2o2o'
|
| 136 |
source_url = 'www.saholic.com'
|
136 |
source_url = 'www.saholic.com'
|
| 137 |
source_name = 'Saholic'
|
137 |
source_name = 'ProfitMandi'
|
| 138 |
hotspot_store_url ='http://125.19.98.100/loaddetect/service.asmx?WSDL'
|
138 |
hotspot_store_url ='http://125.19.98.100/loaddetect/service.asmx?WSDL'
|
| 139 |
aclient = None
|
139 |
aclient = None
|
| 140 |
|
140 |
|
| 141 |
PREPAID_SHIPPING_CUTOFF_TIME = 15
|
141 |
PREPAID_SHIPPING_CUTOFF_TIME = 15
|
| 142 |
COD_SHIPPING_CUTOFF_TIME = 12
|
142 |
COD_SHIPPING_CUTOFF_TIME = 12
|
| Line 1625... |
Line 1625... |
| 1625 |
pickup_text = "Pickup Date: " + order.delivery_timestamp.strftime("%A, %d. %B %Y %I:%M%p")
|
1625 |
pickup_text = "Pickup Date: " + order.delivery_timestamp.strftime("%A, %d. %B %Y %I:%M%p")
|
| 1626 |
thank_you_html = """
|
1626 |
thank_you_html = """
|
| 1627 |
Thank you for shopping with us and picking up your order in Store.
|
1627 |
Thank you for shopping with us and picking up your order in Store.
|
| 1628 |
|
1628 |
|
| 1629 |
Following are the details of your order $master_order_id for which the pickup has happened. <br> If you have not picked up this product please <a href="$source_url/contact-us" target="_blank">contact us</a> immediately.<br>
|
1629 |
Following are the details of your order $master_order_id for which the pickup has happened. <br> If you have not picked up this product please <a href="$source_url/contact-us" target="_blank">contact us</a> immediately.<br>
|
| 1630 |
If you are happy with our services please join us on <a href="https://twitter.com/saholic">Twitter</a>, <a href="http://www.facebook.com/mysaholic">Facebook Page</a> and help us spread the word.<br/>
|
- |
|
| 1631 |
"""
|
1630 |
"""
|
| - |
|
1631 |
#If you are happy with our services please join us on <a href="https://twitter.com/saholic">Twitter</a>, <a href="http://www.facebook.com/mysaholic">Facebook Page</a> and help us spread the word.<br/>
|
| 1632 |
else:
|
1632 |
else:
|
| 1633 |
if hasOtg:
|
1633 |
if hasOtg:
|
| 1634 |
delayed = False
|
1634 |
delayed = False
|
| 1635 |
fda = False
|
1635 |
fda = False
|
| 1636 |
|
1636 |
|
| Line 1671... |
Line 1671... |
| 1671 |
If you are happy with our services please join us on <a href="https://twitter.com/saholic">Twitter</a>, <a href="http://www.facebook.com/mysaholic">Facebook Page</a> and help us spread the word.<br/>
|
1671 |
If you are happy with our services please join us on <a href="https://twitter.com/saholic">Twitter</a>, <a href="http://www.facebook.com/mysaholic">Facebook Page</a> and help us spread the word.<br/>
|
| 1672 |
Following Items are Delivered:
|
1672 |
Following Items are Delivered:
|
| 1673 |
"""
|
1673 |
"""
|
| 1674 |
else :
|
1674 |
else :
|
| 1675 |
thank_you_html = """We are pleased to inform that the following items in your order $master_order_id have been delivered.<br/>
|
1675 |
thank_you_html = """We are pleased to inform that the following items in your order $master_order_id have been delivered.<br/>
|
| 1676 |
If you are happy with our services please join us on <a href="https://twitter.com/saholic">Twitter</a>, <a href="http://www.facebook.com/mysaholic">Facebook Page</a> and help us spread the word.<br/>
|
- |
|
| 1677 |
Following Items are Delivered:
|
1676 |
Following Items are Delivered:
|
| 1678 |
"""
|
1677 |
"""
|
| - |
|
1678 |
#If you are happy with our services please join us on <a href="https://twitter.com/saholic">Twitter</a>, <a href="http://www.facebook.com/mysaholic">Facebook Page</a> and help us spread the word.<br/>
|
| 1679 |
|
1679 |
|
| 1680 |
freebie_text = "<br/>"
|
1680 |
freebie_text = "<br/>"
|
| 1681 |
if hasFreebie and not hasSplitOrder:
|
1681 |
if hasFreebie and not hasSplitOrder:
|
| 1682 |
freebie_text = freebie_text + "We have also delivered your freebies with eligible products as promised<br/>"
|
1682 |
freebie_text = freebie_text + "We have also delivered your freebies with eligible products as promised<br/>"
|
| 1683 |
elif not hasFreebie and hasSplitOrder:
|
1683 |
elif not hasFreebie and hasSplitOrder:
|
| Line 1699... |
Line 1699... |
| 1699 |
|
1699 |
|
| 1700 |
customer_name = order.customer_name
|
1700 |
customer_name = order.customer_name
|
| 1701 |
order_date = order.created_timestamp
|
1701 |
order_date = order.created_timestamp
|
| 1702 |
user_email = order.customer_email
|
1702 |
user_email = order.customer_email
|
| 1703 |
|
1703 |
|
| 1704 |
subject = "Saholic.com || Your order "+logisticsTxnId+" is now complete"
|
1704 |
subject = "%s - Your order "+logisticsTxnId+" is delivered"%(source_name)
|
| 1705 |
dt = datetime.datetime.strptime(str(order_date), "%Y-%m-%d %H:%M:%S")
|
1705 |
dt = datetime.datetime.strptime(str(order_date), "%Y-%m-%d %H:%M:%S")
|
| 1706 |
formated_order_date = dt.strftime("%A, %d. %B %Y %I:%M%p")
|
1706 |
formated_order_date = dt.strftime("%A, %d. %B %Y %I:%M%p")
|
| 1707 |
|
1707 |
|
| 1708 |
complete_html = html_header + thank_you_html + html
|
1708 |
complete_html = html_header + thank_you_html + html
|
| 1709 |
|
1709 |
|
| Line 5400... |
Line 5400... |
| 5400 |
<html>
|
5400 |
<html>
|
| 5401 |
<body>
|
5401 |
<body>
|
| 5402 |
<div>
|
5402 |
<div>
|
| 5403 |
<p>Dear Customer,</p>
|
5403 |
<p>Dear Customer,</p>
|
| 5404 |
<p>
|
5404 |
<p>
|
| 5405 |
We are pleased to inform that the following items in your order: -$master_order_id have been Shipped.
|
5405 |
We are pleased to inform that the following items in your order: $master_order_id have been Shipped.
|
| 5406 |
Details of your shipment:
|
5406 |
Details of your shipment:
|
| 5407 |
<br>
|
5407 |
<br>
|
| 5408 |
<br>
|
5408 |
<br>
|
| 5409 |
<div>
|
5409 |
<div>
|
| 5410 |
<table>
|
5410 |
<table>
|
| Line 5507... |
Line 5507... |
| 5507 |
<br/>
|
5507 |
<br/>
|
| 5508 |
The product can be delivered to you between business hours of 10am to 6pm.
|
5508 |
The product can be delivered to you between business hours of 10am to 6pm.
|
| 5509 |
You can Check the current shipment updates for your product online at <a href="www.saholic.com/myaccount">Open Orders</a>.
|
5509 |
You can Check the current shipment updates for your product online at <a href="www.saholic.com/myaccount">Open Orders</a>.
|
| 5510 |
</p>
|
5510 |
</p>
|
| 5511 |
<p>
|
5511 |
<p>
|
| 5512 |
For scheduling the delivery of your product at some specific timings, we recommend you to contact the helpline for $courier_name with your complete AWB#.
|
5512 |
For scheduling the delivery of your product at some specific timings, we recommend you to contact the helpline for $courier_name with your complete Airway Bill Number.
|
| 5513 |
</p>
|
5513 |
</p>
|
| 5514 |
<p>$courier_name: $courier_phone</p>
|
5514 |
<p>$courier_name: $courier_phone</p>
|
| 5515 |
<p>
|
5515 |
<p>
|
| 5516 |
Warm Regards,<br />
|
5516 |
Warm Regards,<br />
|
| 5517 |
$source_name Team
|
5517 |
$source_name Team
|
| Line 6344... |
Line 6344... |
| 6344 |
print e
|
6344 |
print e
|
| 6345 |
'''
|
6345 |
'''
|
| 6346 |
elif status == "Recharge Failed" and recharge_order.description != "Invalid Device Number" :
|
6346 |
elif status == "Recharge Failed" and recharge_order.description != "Invalid Device Number" :
|
| 6347 |
smsText = "Dear Customer, We could not process your recharge due to" + failureReasonSms + " We have credited the amount to your recharge wallet. You can use wallet amount to recharge again. "
|
6347 |
smsText = "Dear Customer, We could not process your recharge due to" + failureReasonSms + " We have credited the amount to your recharge wallet. You can use wallet amount to recharge again. "
|
| 6348 |
elif status == "Recharge Successful" :
|
6348 |
elif status == "Recharge Successful" :
|
| 6349 |
smsText = "Dear Customer, Thanks for recharging your mobile for Rs. "+ str(recharge_order.totalAmount) + " from Saholic.com. Order Id is "+ display_order_id + ". Any Query? please call +919818116289"
|
6349 |
smsText = "Dear Customer, Thanks for recharging your mobile for Rs. "+ str(recharge_order.totalAmount) + " from profitmandi. Order Id is "+ display_order_id + ". Any Query? please call 8826894203"
|
| 6350 |
elif status == "Recharge Under Process" :
|
6350 |
elif status == "Recharge Under Process" :
|
| 6351 |
smsText = "Dear Customer, Your Payment was successful but due to some internal error with the operator's system we are not sure if the recharge was successful. In case your recharge is not processed, we will credit amount to your recharge wallet."
|
6351 |
smsText = "Dear Customer, Your Payment was successful but due to some internal error with the operator's system we are not sure if the recharge was successful. In case your recharge is not processed, we will credit amount to your recharge wallet."
|
| 6352 |
#Dear Customer, Your Payment was successful but due to some internal error with the operator's system we are not sure if the recharge was successful. In case your recharge is not processed, we will credit amount to your recharge wallet.
|
6352 |
#Dear Customer, Your Payment was successful but due to some internal error with the operator's system we are not sure if the recharge was successful. In case your recharge is not processed, we will credit amount to your recharge wallet.
|
| 6353 |
elif status == "Recharge Failed, Amount Refunded" :
|
6353 |
elif status == "Recharge Failed, Amount Refunded" :
|
| 6354 |
smsText = "Dear Customer, It seems operator could not process your recharge request. We are crediting the refund amount to your recharge wallet. You can use wallet amount to recharge again."
|
6354 |
smsText = "Dear Customer, It seems operator could not process your recharge request. We are crediting the refund amount to your recharge wallet. You can use wallet amount to recharge again."
|