From 2976b0717cef4f1cb23b480e1102e2c74b9006b0 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Mon, 28 Feb 2022 16:58:01 +0100 Subject: [PATCH] Display "Update" button on the order table page unless order is complete With the split checkout, we can access this page between the different steps: for this cases, cart actions should be displayed --- app/views/spree/orders/_form.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/spree/orders/_form.html.haml b/app/views/spree/orders/_form.html.haml index e19d2bd960..0b5d2d9444 100644 --- a/app/views/spree/orders/_form.html.haml +++ b/app/views/spree/orders/_form.html.haml @@ -22,7 +22,7 @@ = render 'bought' if show_bought_items? && @order.cart? %tfoot#edit-cart - = render 'spree/orders/form/cart_actions_row' if @order.cart? + = render 'spree/orders/form/cart_actions_row' unless @order.complete? %tr %td.text-right{colspan:"3"}