Skip to content

Commit

Permalink
Do not set checkout zone for new store (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandar Petrushev authored Dec 22, 2021
1 parent bbf190d commit 3fab47d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<hr />
<%= f.field_container :checkout_zone_id do %>
<%= f.label :checkout_zone_id, Spree.t(:shipping_zone) %>
<%= f.select :checkout_zone_id, options_for_select(@zones, selected_checkout_zone(@store)&.id), { include_blank: Spree.t(:no_limits_zone) }, { class: 'select2' } %>
<%= f.select :checkout_zone_id, options_for_select(@zones), { include_blank: Spree.t(:no_limits_zone) }, { class: 'select2' } %>
<small class="form-text text-muted">
<%= raw(Spree.t('admin.store_form.checkout_zone_help')) %>
</small>
Expand Down
1 change: 1 addition & 0 deletions spec/features/admin/configuration/stores_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
it 'sets default currency value', js: true do
visit spree.new_admin_store_path
expect(page).to have_selector(:id, 'select2-store_default_currency-container', text: 'United States Dollar (USD)')
expect(page).to have_field('store_checkout_zone_id', text: 'No Limits')
end

it 'saving store' do
Expand Down

0 comments on commit 3fab47d

Please sign in to comment.