app/models/caboose/order_package.rb in caboose-cms-0.5.134 vs app/models/caboose/order_package.rb in caboose-cms-0.5.135
- old
+ new
@@ -22,17 +22,17 @@
def check_nil_fields
self.total = 0.00 if self.total.nil?
end
def self.custom_order_packages(store_config, order)
- eval(store_config.order_packages_function)
+ eval(store_config.custom_packages_function)
end
# Calculates the shipping packages required for all the items in the order
def self.create_for_order(order)
store_config = order.site.store_config
- if !store_config.calculate_packages
+ if !store_config.auto_calculate_packages
self.custom_order_packages(store_config, order)
return
end
# Make sure all the line items in the order have a quantity of 1