% sc = @store_config %>
If calculating tax automatically, a TaxCloud (taxcloud.net) account is required. Otherwise, a custom tax function is required.
def custom_tax_function(order) {
# return 0.00
}
If calculating order packages automatically, all shippable variants must have dimensions and weights populated. Otherwise, a custom order packages function is required.
def custom_order_packages_function(order) {
# This function does not return anything, but creates the Caboose::OrderPackage objects for the given order
}
If calculating shipping rates automatically, all shippable variants must have dimensions and weights populated. Otherwise, a custom shipping rates function is required.
def custom_shipping_rates_function(order) {
# Returns an empty array by default.
# Return an array of order packages and their rates
# return [{
# :order_package => Caboose::OrderPackage.new,
# :rates => [{
# :shipping_method => Caboose::ShippingMethod.new,
# :total_price => 3.50
# }]
# }]
}