Sha256: 44c33962bae568be626b1d94be9a754f4322c476bba26220ddaff019142c16e1
Contents?: true
Size: 760 Bytes
Versions: 2
Compression:
Stored size: 760 Bytes
Contents
class Plugins::Ecommerce::CartDecorator < Draper::Decorator delegate_all def the_sub_total "#{h.current_site.current_unit}#{sprintf('%.2f', object.sub_total)}" end def the_total_discounts "#{h.current_site.current_unit}#{sprintf('%.2f', object.total_discounts)}" end def the_total_amount "#{h.current_site.current_unit}#{sprintf('%.2f', object.total_amount)}" end alias_method :the_price, :the_total_amount def the_tax_total "#{h.current_site.current_unit}#{sprintf('%.2f', object.tax_total)}" end def the_weight_total "#{h.current_site.current_weight} #{sprintf('%.2f', object.weight_total)}" end def the_total_shipping "#{h.current_site.current_unit}#{sprintf('%.2f', object.total_shipping)}" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
camaleon_ecommerce-1.2 | app/decorators/plugins/ecommerce/cart_decorator.rb |
camaleon_ecommerce-1.1 | app/decorators/plugins/ecommerce/cart_decorator.rb |