spree_special_offers 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,8 @@
1
+ ProductsHelper.class_eval do
2
+ def product_old_price product
3
+ if product.old_price && product.old_price > 0
4
+ return "<span class='old_price price selling'>#{format_price(product.old_price)}</span>".html_safe
5
+ end
6
+ return ""
7
+ end
8
+ end
@@ -4,5 +4,5 @@
4
4
  <p class="prices">
5
5
  <%= t("old_price") %>
6
6
  <br />
7
- <span class='old_price price selling'><%= format_price(@product.old_price) %></span>
7
+ <%= product_old_price @product %>
8
8
  </p>
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_special_offers
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
+ - 1
8
9
  - 0
9
- - 0
10
- version: 1.0.0
10
+ version: 1.1.0
11
11
  platform: ruby
12
12
  authors: []
13
13