Order confirmation redirects 'Back to Cart' if cart is non-empty

This commit is contained in:
Rob Harrington
2017-04-12 16:02:28 +10:00
parent b55036e165
commit 7ea74ccf4a
2 changed files with 10 additions and 3 deletions

View File

@@ -1,8 +1,13 @@
.row
.columns.small-12.medium-3
= link_to main_app.shop_path, :class => "button expand" do
%i.ofn-i_008-caret-left
= t(:back_to_store)
- 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)
- 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

View File

@@ -783,6 +783,8 @@ en:
order_includes_tax: (includes tax)
order_payment_paypal_successful: Your payment via PayPal has been processed successfully.
order_hub_info: Hub Info
order_back_to_store: Back To Store
order_back_to_cart: Back To Cart
bom_tip: "Use this page to alter product quantities across multiple orders. Products may also be removed from orders entirely, if required."