Sha256: afb48ba9beff460a17630b0270bf9e74da8d0da4ece50e236648b3ae0a67c608
Contents?: true
Size: 587 Bytes
Versions: 4
Compression:
Stored size: 587 Bytes
Contents
<% display_percent ||= false %> <% if product.price > 0 and product.master.volume_prices.present? %> <div id="bulk-discount"> <h6><%= t('spree.bulk_discount') %></h6> <table class="table"> <% product.master.volume_prices.each do |v| %> <%= content_tag(:tr) do %> <%= content_tag :td, v.display_range %> <%= content_tag :td, Spree::Money.new(v.amount).to_s %> <%= content_tag(:td, '%i%' % ((1.0 - v.amount / product.master.price) * 100.0).round) if display_percent %> <% end %> <% end %> </table> </div> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems