app/controllers/spree/checkout_controller_decorator.rb
# hook to allow applications to load in their own shipping and handling costs
hook to allow applications to load in their own shipping and handling costs
hook to allow applications to load in their own shipping and handling costs
def flat_rate_shipping_and_handling_options(order, stage)
      {}
    end
def flat_rate_shipping_and_handling_options ( order , stage ) { } end
hook to allow applications to load in their own shipping and handling costs
hook to allow applications to load in their own shipping and handling costs
# max_fallback = 0.0 # shipping_options = ShippingMethod.all.map do |shipping_method| #           { :name       => "#{shipping_method.name}", #             :amount      => (shipping_method.rate), #             :default     => shipping_method.is_default } #         end # default_shipping_method = ShippingMethod.find(:first, :conditions => {:is_default => true}) # opts = { :shipping_options  => shipping_options, #        } # #opts[:shipping] = (default_shipping_method.nil? ? 0 : default_shipping_method.fallback_amount) if stage == "checkout" # opts
order
<not_specific>
stage
<not_specific>