Sha256: ad8e7e5670738c275cf4ca3ce5a844960ab42a9e7b9d30e5a0601a0d7dc15369
Contents?: true
Size: 598 Bytes
Versions: 4
Compression:
Stored size: 598 Bytes
Contents
Spree::BaseHelper.class_eval do def display_volume_price(variant, quantity = 1, user = nil) Spree::Money.new( variant.volume_price(quantity, user), currency: Spree::Config[:currency] ).to_html end def display_volume_price_earning_percent(variant, quantity = 1, user = nil) variant.volume_price_earning_percent(quantity, user).round.to_s end def display_volume_price_earning_amount(variant, quantity = 1, user = nil) Spree::Money.new( variant.volume_price_earning_amount(quantity, user), currency: Spree::Config[:currency] ).to_html end end
Version data entries
4 entries across 4 versions & 1 rubygems