diff --git a/app/views/spree/orders/form/_update_buttons.html.haml b/app/views/spree/orders/form/_update_buttons.html.haml index 35debc535f..9d62b720d8 100644 --- a/app/views/spree/orders/form/_update_buttons.html.haml +++ b/app/views/spree/orders/form/_update_buttons.html.haml @@ -1,13 +1,16 @@ .row .columns.small-12.medium-3 - - if current_order.andand.line_items.present? - = link_to spree.cart_path, :class => "button expand" do - %i.ofn-i_008-caret-left - = t(:order_back_to_cart) + - if current_order.andand.distributor == @order.distributor + - if current_order.line_items.present? + = link_to spree.cart_path, :class => "button expand" do + %i.ofn-i_008-caret-left + = t(:order_back_to_cart) + - else + = link_to main_app.shop_path, :class => "button expand" do + %i.ofn-i_008-caret-left + = t(:order_back_to_store) - else - = link_to main_app.shop_path, :class => "button expand" do - %i.ofn-i_008-caret-left - = t(:order_back_to_store) +   - if order.changes_allowed? .columns.show-for-medium-up.medium-3   .columns.small-12.medium-3