Sha256: 00b4a89986b64922995dffb63248a3efac8e92da0c225a4ccc2557f8abdee8ee
Contents?: true
Size: 544 Bytes
Versions: 6
Compression:
Stored size: 544 Bytes
Contents
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) 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
6 entries across 6 versions & 1 rubygems