Sha256: 1c3666fdb98d2f12a53c6cd22269d6219a62ebe9626b2c7f2952c4476ae892da
Contents?: true
Size: 501 Bytes
Versions: 3
Compression:
Stored size: 501 Bytes
Contents
# frozen_string_literal: true module SolidusPromotions module OrderRecalculatorDecorator # This is only needed for stores upgrading from the legacy promotion system. # Once we've removed support for the legacy promotion system, we can remove this. def recalculate if SolidusPromotions.config.sync_order_promotions MigrationSupport::OrderPromotionSyncer.new(order: order).call end super end Spree::Config.order_recalculator_class.prepend self end end
Version data entries
3 entries across 3 versions & 1 rubygems