spree_zone_pricing 0.1.50 → 0.1.51
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,16 +1,11 @@
|
|
1
1
|
<!-- insert_after 'p[data-hook=price]' -->
|
2
2
|
<p data-hook="zone_prices">
|
3
3
|
<label for="zone_prices">Zone Prices:</label>
|
4
|
-
<%
|
5
|
-
<%
|
6
|
-
<% zone_price = ZonePrice.find(:first, :conditions => {:variant_id => @variant.id, :zone_id => zone.id}) %>
|
4
|
+
<% currency_prices = CurrencyPrice.find(:all, :conditions => {:variant_id => @variant.id}) %>
|
5
|
+
<% currency_prices.each do |currency_price| %>
|
7
6
|
<p>
|
8
|
-
<%=
|
9
|
-
|
10
|
-
<%= text_field_tag "zone_price_" + @variant.id.to_s + "_" + zone.id.to_s, number_with_precision(zone_price.price, :precision => 2) %>
|
11
|
-
<% else %>
|
12
|
-
<%= text_field_tag "zone_price_" + @variant.id.to_s + "_" + zone.id.to_s, "" %>
|
13
|
-
<% end %>
|
7
|
+
<%= currency_price.currency %>:<br />
|
8
|
+
<%= text_field_tag "currency_price_" + @variant.id.to_s + "_" + currency_price.currency.to_s, number_with_precision(currency_price.price, :precision => 2) %>
|
14
9
|
</p>
|
15
10
|
<% end %>
|
16
11
|
</p>
|
@@ -1,2 +1,2 @@
|
|
1
1
|
<!-- insert_bottom 'ul[data-hook=admin_tabs]' -->
|
2
|
-
<%= tab :zone_prices %>
|
2
|
+
<%= tab :zone_prices, :zone_currencies, :currency_prices, :label => "Zone Prices" %>
|