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