Add option 'allow guest orders' to enterprise

An enterprise manager can choose to allow guest orders (default) or
require a valid login for checkout.
This commit is contained in:
Maikel Linke
2016-09-23 08:36:58 +10:00
parent 92694c729f
commit c59cd21698
5 changed files with 28 additions and 1 deletions

View File

@@ -45,3 +45,15 @@
.five.columns.omega
= f.radio_button :require_login, true
= f.label :require_login, t('.shopfront_requires_login_true'), value: :true
.row
.alpha.eleven.columns
.three.columns.alpha
%label= t '.allow_guest_orders'
%div{'ofn-with-tip' => t('.allow_guest_orders_tip')}
%a= t 'admin.whats_this'
.three.columns
= f.radio_button :allow_guest_orders, false
= f.label :allow_guest_orders, t('.allow_guest_orders_false'), value: :false
.five.columns.omega
= f.radio_button :allow_guest_orders, true
= f.label :allow_guest_orders, t('.allow_guest_orders_true'), value: :true