Method: ShippingMethod#available_to_order?

Defined in:
app/models/shipping_method.rb

#available_to_order?(order, display_on = nil) ⇒ Boolean

Returns:

  • (Boolean)


15
16
17
18
19
# File 'app/models/shipping_method.rb', line 15

def available_to_order?(order, display_on=nil)
  availability_check = available?(order,display_on)
  zone_check = zone && zone.include?(order.ship_address)
  availability_check && zone_check
end