def callback_clear_cart(call): cart = Cart(call.message.chat.id) cart.items = None cart.set_cart_to_user()
def callback_to_cart(call): cart = Cart(call.message.chat.id) cart.add_item(catalog.products[catalog.current_prod]) cart.set_cart_to_user()