Sha256: 4000027a112605b69155036b9ec1ead5899349857f538a69a48e546b65792290
Contents?: true
Size: 388 Bytes
Versions: 20
Compression:
Stored size: 388 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
20 entries across 20 versions & 1 rubygems