Subversion Repositories SmartDukaan

Rev

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

Rev 4871 Rev 5129
Line 509... Line 509...
509
    cart = Cart.get_by(id = cartId)
509
    cart = Cart.get_by(id = cartId)
510
    cod_option = True
510
    cod_option = True
511
    logistics_client = LogisticsClient().get_client()
511
    logistics_client = LogisticsClient().get_client()
512
    
512
    
513
    if cart:
513
    if cart:
514
        if cart.coupon_code and cart.coupon_code.lower() == 'sh911':
514
        if cart.coupon_code and cart.coupon_code.lower() == 'saccessory':
515
            cod_option = False 
515
            cod_option = False 
516
    
516
    
517
        elif cart.lines:
517
        elif cart.lines:
518
            for line in cart.lines:
518
            for line in cart.lines:
519
                logistics_info = logistics_client.getLogisticsEstimation(line.item_id, pincode, DeliveryType.PREPAID)
519
                logistics_info = logistics_client.getLogisticsEstimation(line.item_id, pincode, DeliveryType.PREPAID)