Sha256: c63f856299da47761ccba3261350b04d1b520692b53c8f9e18f10a6e9a95fbbe
Contents?: true
Size: 600 Bytes
Versions: 22
Compression:
Stored size: 600 Bytes
Contents
# frozen_string_literal: true # Flow (2017) # Enable this modifications if you want to display flow localized line item shipment price beside Spree default # Example: https://i.imgur.com/7v2ix2G.png module Spree module Admin OrdersHelper.module_eval do # admin show line item total price def line_item_shipment_price(line_item, quantity) price = Spree::Money.new(line_item.price * quantity, currency: line_item.currency).to_s price += " (#{@order.flow_line_item_price(line_item, quantity)})" if @order.flow_order price.html_safe end end end end
Version data entries
22 entries across 22 versions & 1 rubygems