Update cart.py
Browse files
cart.py
CHANGED
@@ -104,7 +104,7 @@ def cart():
|
|
104 |
print(f"Error fetching cart items: {e}")
|
105 |
return render_template("cart.html", cart_items=[], subtotal=0, reward_points=0, coupons=[], suggestions=[])
|
106 |
|
107 |
-
@cart_blueprint.route("/
|
108 |
def add_suggestion_to_cart():
|
109 |
try:
|
110 |
# Get data from the request
|
|
|
104 |
print(f"Error fetching cart items: {e}")
|
105 |
return render_template("cart.html", cart_items=[], subtotal=0, reward_points=0, coupons=[], suggestions=[])
|
106 |
|
107 |
+
@cart_blueprint.route("/add_suggestion_to_cart", methods=["POST"])
|
108 |
def add_suggestion_to_cart():
|
109 |
try:
|
110 |
# Get data from the request
|