Skip to content

Commit 8bb0baf

Browse files
author
Systemaker
committed
update order cart
1 parent 9cded7e commit 8bb0baf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/modules/orders/templates/orders/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ <h3>Order</h3>
4444
unit amount : {{ orderitem.unit_amount }} |
4545
quantity : {{ orderitem.quantity }} |
4646
Amount :{{ orderitem.total_amount }} |
47-
<a href="{{ url_for('orders_page.remove_cart', item_id = orderitem.item.id) }}" onclick="return confirm('Are you sure you want to remove this item from cart ?');"><i class="glyphicon glyphicon-remove"></i> </a>
47+
{% if order.status == 'new' %}
48+
<a href="{{ url_for('orders_page.remove_cart', item_id = orderitem.item.id) }}" onclick="return confirm('Are you sure you want to remove this item from cart ?');"><i class="glyphicon glyphicon-remove"></i> </a>
49+
{% endif %}
4850
<br/>
4951
{% endfor %}
5052
{% else %}

0 commit comments

Comments
 (0)