lib/offer_totals.rb
# Given an Order and amount of offer, it calculates tax, shipping based on offer amount
Given an Order and amount of offer, it calculates tax, shipping based on offer amount
Given an Order and amount of offer it calculates tax shipping based on offer amount
def shipping_total_cents
    return unless @order.shipping_info?
    @shipping_total_cents ||= ShippingHelper.calculate(artwork, @order.fulfillment_type, @order.shipping_address)
  end
def shipping_total_cents return unless @order . shipping_info? @shipping_total_cents ||= ShippingHelper . calculate ( artwork , @order . fulfillment_type , @order . shipping_address ) end
Given an Order and amount of offer, it calculates tax, shipping based on offer amount
Given an Order and amount of offer it calculates tax shipping based on offer amount