Sha256: 58c7d01b96ed4a7eb4bc3bc8965ac59db821ac9ef3ad0c453543bd37c489cd0a
Contents?: true
Size: 496 Bytes
Versions: 15
Compression:
Stored size: 496 Bytes
Contents
require_dependency 'spree/shipping_calculator' module Spree module Calculator::Shipping class FlatRate < ShippingCalculator preference :amount, :decimal, :default => 0 preference :currency, :string, :default => Spree::Config[:currency] attr_accessible :preferred_amount, :preferred_currency def self.description Spree.t(:shipping_flat_rate_per_order) end def compute_package(package) self.preferred_amount end end end end
Version data entries
15 entries across 15 versions & 1 rubygems