c-3
c-3
com6 = """
INSERT INTO customer (cust_id, cust_name,
order_id, totalprice, DOO)
VALUES (%s, %s, %s, %s,CURRENT_DATE)
"""
cur.execute(com6, (j, v, i, total_price))
conn.commit()
print("Your Customer ID: ",j)
print("Your Order ID: ",i)
print("Product added to cart successfully!")
print("THANK YOU FOR ORDERING")
except TypeError:
print("Invalid Product ID!")
finally:
inp=input("Do you want to or more(y/n): ")
if inp.lower()=="y":
add_to_cart()
cur.close()
conn.close()
print()