Class: Stall::Checkout::ShippingMethodCheckoutStep

Inherits:
Step
  • Object
show all
Defined in:
lib/stall/checkout/shipping_method_checkout_step.rb

Instance Attribute Summary

Attributes inherited from Step

#cart

Instance Method Summary collapse

Methods inherited from Step

#cart_params, for, #identifier, #initialize, #inject, #is?, #save, #skip?, #valid?, validations

Constructor Details

This class inherits a constructor from Stall::Checkout::Step

Instance Method Details

#prepareObject



4
5
6
# File 'lib/stall/checkout/shipping_method_checkout_step.rb', line 4

def prepare
  cart.build_shipment unless cart.shipment
end

#processObject



8
9
10
11
# File 'lib/stall/checkout/shipping_method_checkout_step.rb', line 8

def process
  super
  calculate_shipping_fee!
end