Subversion Repositories SmartDukaan

Rev

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

Rev 11853 Rev 11860
Line 466... Line 466...
466
            if updated_cart.message is not None:
466
            if updated_cart.message is not None:
467
                emival = updated_cart.message
467
                emival = updated_cart.message
468
        except PromotionException as ex:
468
        except PromotionException as ex:
469
            remove_coupon(cart.id)
469
            remove_coupon(cart.id)
470
            retval = ex.message
470
            retval = ex.message
471
    
471
    session.close()
472
    return [retval, emival]
472
    return [retval, emival]
473
 
473
 
474
def merge_cart(fromCartId, toCartId):
474
def merge_cart(fromCartId, toCartId):
475
    fromCart = Cart.get_by(id=fromCartId)
475
    fromCart = Cart.get_by(id=fromCartId)
476
    toCart = Cart.get_by(id=toCartId)
476
    toCart = Cart.get_by(id=toCartId)