Sha256: 992bb1e5499eda1fcbef0ad9bdfe071aab6494e5959f8ef007cf256761d4443f
Contents?: true
Size: 386 Bytes
Versions: 58
Compression:
Stored size: 386 Bytes
Contents
module Spree class Promotion module Actions class FreeShipping < Spree::PromotionAction include Spree::AdjustmentSource def perform(payload={}) order = payload[:order] create_unique_adjustments(order, order.shipments) end def compute_amount(shipment) shipment.cost * -1 end end end end end
Version data entries
58 entries across 58 versions & 1 rubygems