Subversion Repositories SmartDukaan

Rev

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

Rev 19719 Rev 19722
Line 1643... Line 1643...
1643
    try:
1643
    try:
1644
        helper_client = HelperClient(host_key = "helper_service_server_host_prod").get_client()
1644
        helper_client = HelperClient(host_key = "helper_service_server_host_prod").get_client()
1645
        helper_client.saveUserEmailForSending([user_email], SaholicHelpEmailId, subject, email_html, logisticsTxnId, "DeliverySuccess", [], [], order.source)
1645
        helper_client.saveUserEmailForSending([user_email], SaholicHelpEmailId, subject, email_html, logisticsTxnId, "DeliverySuccess", [], [], order.source)
1646
        
1646
        
1647
        if order.source == OrderSource.WEBSITE:
1647
        if order.source == OrderSource.WEBSITE:
1648
            send_transaction_sms(order.customer_id, order.customer_mobilenumber, "Dear Customer, Your order: " + logisticsTxnId + " has been delivered now. For any queries please call +919811247808." , SmsType.TRANSACTIONAL, True)
1648
            send_transaction_sms(order.customer_id, order.customer_mobilenumber, "Dear Customer, Your order: " + logisticsTxnId + " has been delivered now. For any queries please call +919818116289." , SmsType.TRANSACTIONAL, True)
1649
        
1649
        
1650
        return True
1650
        return True
1651
    except Exception as e:
1651
    except Exception as e:
1652
        print e
1652
        print e
1653
        return False
1653
        return False
Line 6154... Line 6154...
6154
                print e
6154
                print e
6155
            '''
6155
            '''
6156
        elif status == "Recharge Failed" and recharge_order.description != "Invalid Device Number" :
6156
        elif status == "Recharge Failed" and recharge_order.description != "Invalid Device Number" :
6157
            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. "
6157
            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. "
6158
        elif status == "Recharge Successful" :
6158
        elif status == "Recharge Successful" :
6159
            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 +919811247808"
6159
            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"
6160
        elif status == "Recharge Under Process" :
6160
        elif status == "Recharge Under Process" :
6161
            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."
6161
            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."
6162
            #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.
6162
            #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.
6163
        elif status == "Recharge Failed, Amount Refunded" :
6163
        elif status == "Recharge Failed, Amount Refunded" :
6164
            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."
6164
            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."
Line 9457... Line 9457...
9457
            </tr>"""
9457
            </tr>"""
9458
            
9458
            
9459
    html += """
9459
    html += """
9460
            </table>
9460
            </table>
9461
            <p>
9461
            <p>
9462
                For any queries please call +919811247808.
9462
                For any queries please call +919818116289.
9463
            </p>
9463
            </p>
9464
            <p>
9464
            <p>
9465
                Warm Regards,<br />
9465
                Warm Regards,<br />
9466
                Saholic Team
9466
                Saholic Team
9467
            </p>
9467
            </p>
Line 9473... Line 9473...
9473
    bcc = ["backup@saholic.com"]
9473
    bcc = ["backup@saholic.com"]
9474
    try:
9474
    try:
9475
        helper_client = HelperClient().get_client()
9475
        helper_client = HelperClient().get_client()
9476
        helper_client.saveUserEmailForSending([order.customer_email], SaholicHelpEmailId, subject, html, str(order.id), "TransactionInfo", [], bcc, order.source)
9476
        helper_client.saveUserEmailForSending([order.customer_email], SaholicHelpEmailId, subject, html, str(order.id), "TransactionInfo", [], bcc, order.source)
9477
        if order.customer_mobilenumber is not None:
9477
        if order.customer_mobilenumber is not None:
9478
            smsText = "Dear Customer, Your Order "+ str(order.id) + " have been split into two orders. Please check your account or email. For any queries please call +919811247808."
9478
            smsText = "Dear Customer, Your Order "+ str(order.id) + " have been split into two orders. Please check your account or email. For any queries please call +919818116289."
9479
            send_transaction_sms(order.customer_id, order.customer_mobilenumber, smsText, SmsType.TRANSACTIONAL, False)
9479
            send_transaction_sms(order.customer_id, order.customer_mobilenumber, smsText, SmsType.TRANSACTIONAL, False)
9480
            
9480
            
9481
    except Exception as e:
9481
    except Exception as e:
9482
        print e
9482
        print e
9483
    
9483