Sha256: 142cf5311c9a820624c6fc959b2f7277e6e2eac751c55767c18ce2c85eff5ef6
Contents?: true
Size: 842 Bytes
Versions: 14
Compression:
Stored size: 842 Bytes
Contents
module Spree module Admin module OrdersHelper # Renders all the extension partials that may have been specified in the extensions def event_links links = [] @order_events.sort.each do |event| if @order.send("can_#{event}?") links << button_link_to(Spree.t(event), fire_admin_order_url(@order, :e => event), :method => :put, :icon => "icon-#{event}", :data => { :confirm => Spree.t(:order_sure_want_to, :event => Spree.t(event)) }) end end links.join(' ').html_safe end def line_item_shipment_price(line_item, quantity) Spree::Money.new(line_item.price * quantity, { currency: line_item.currency }) end end end end
Version data entries
14 entries across 14 versions & 1 rubygems