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 :
|
2
|
+
<%= tab :zone_files %>
|
@@ -1,2 +1,18 @@
|
|
1
1
|
<!-- insert_after 'p[data-hook=price]' -->
|
2
|
-
<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>
|