spree_zone_pricing 0.1.85 → 0.1.86

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,10 +1,11 @@
1
1
  <!-- insert_top '#search-bar' -->
2
2
  <% @zone_members = Spree::ZoneMember.find_all_by_zoneable_type("Spree::Country") %>
3
+ <% country_selected = session[:store_country] %>
3
4
  <form id="country_selector" method="get">
4
- <select id="country" onchange="$('#country_selector').submit();">
5
+ <select id="store_country" onchange="$('#country_selector').submit();">
5
6
  <% @zone_members.each do |zone_member| %>
6
7
  <% country = Spree::Country.find(zone_member.zoneable_id) %>
7
- <option value="<%= country.iso %>"><%= country.name %></option>
8
+ <option value="<%= country.iso %>"<% if country.iso == country_selected %> selected<% end %>><%= country.name %></option>
8
9
  <% end %>
9
10
  </select>
10
11
  </form>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_zone_pricing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.85
4
+ version: 0.1.86
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: