Subversion Repositories SmartDukaan

Rev

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

Rev 5345 Rev 5351
Line 459... Line 459...
459
    cart = Cart.get_by(id = cartId)
459
    cart = Cart.get_by(id = cartId)
460
    cod_option = True
460
    cod_option = True
461
    logistics_client = LogisticsClient().get_client()
461
    logistics_client = LogisticsClient().get_client()
462
    
462
    
463
    if cart:
463
    if cart:
464
        if cart.coupon_code and cart.coupon_code.lower() == 'saccessory':
464
        if cart.coupon_code and cart.coupon_code.lower() == 'searlybird':
465
            cod_option = False 
465
            cod_option = False
466
    
466
        
467
        elif cart.lines:
467
        elif cart.lines:
468
            for line in cart.lines:
468
            for line in cart.lines:
469
                logistics_info = logistics_client.getLogisticsEstimation(line.item_id, pincode, DeliveryType.PREPAID)
469
                logistics_info = logistics_client.getLogisticsEstimation(line.item_id, pincode, DeliveryType.PREPAID)
470
                
470
                
471
                if not logistics_info.codAllowed:
471
                if not logistics_info.codAllowed: