spree_zone_pricing 0.1.33 → 0.1.34

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,2 +1,2 @@
1
1
  <!-- insert_bottom 'ul' -->
2
- <%= tab :zone_prices %>
2
+ <%= tab :zone_files %>
@@ -1,2 +1,18 @@
1
1
  <!-- insert_after 'p[data-hook=price]' -->
2
- <p>Zone Prices come here...</p>
2
+ <p data-hook="zone_prices">
3
+ <label for="zone_prices">Zone Prices:</label>
4
+ <%
5
+ zones = Spree::Zone.all
6
+ %>
7
+ <% zones.each do |zone| %>
8
+ <% zone_price = ZonePrice.find(:first, :conditions => {:variant_id => @variant.id, :zone_id => zone.id}) %>
9
+ <p>
10
+ <%= zone.name %>:
11
+ <% if !zone_price.nil? %>
12
+ <%= zone_price.price %>
13
+ <% else %>
14
+ Not defined.
15
+ <% end %>
16
+ </p>
17
+ <% end %>
18
+ </p>
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.33
4
+ version: 0.1.34
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: