Sha256: c3d41ed218004f835a1baf705c33c2d0a5bff2dc7172859763c17e2f59ce24d8
Contents?: true
Size: 664 Bytes
Versions: 14
Compression:
Stored size: 664 Bytes
Contents
# frozen_string_literal: true require_dependency 'spree/calculator' module Spree # @deprecated This calculator will be removed in future versions of Spree. # The only case where it was used was for Free Shipping Promotions. There is # now a Promotion Action which deals with these types of promotions instead. class Calculator::FreeShipping < Calculator def compute(object) Spree::Deprecation.warn('This method is deprecated, because it is no longer used') if object.is_a?(Array) return if object.empty? order = object.first.order else order = object end order.ship_total end end end
Version data entries
14 entries across 14 versions & 1 rubygems