Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- id: 27920
- user_id:
- state: browsing
- finalized_at:
- note:
- note_customer:
- created_at: Fri Jan 15 13:47:46 -0600 2010
- updated_at: Fri Jan 15 13:47:46 -0600 2010
- shipping_method_id: 5
- shipping_address_id:
- billing_address_id:
- gift_wrap:
- email:
- authorization:
- ip_address:
- location: thebabyhabit.com
- payment_method:
- gift_note:
- name_on_card:
- ship_to_separate_address: false
- paypal_express_token:
- paypal_express_payer_id:
- coupon_id:
- paid_manually: false
- paid_manually_notes:
- frozen_shipping_price_cents: 0
- frozen_gift_wrap_price_cents: 0
- initial_captured_amount_cents: 0
- phone:
- id: 41158
- order_id: 27920
- item_id: 66
- item_type: Product
- shipment_id:
- unit_price_cents: 6000
- embroidery_price_cents:
- embroidery_monogram_thread_id:
- embroidery_line_1_thread_id: 33
- embroidery_line_2_thread_id:
- embroidery_line_3_thread_id:
- embroidery_monogram_font_id:
- embroidery_line_1_font_id: 3
- embroidery_line_2_font_id:
- embroidery_line_3_font_id:
- quantity: 1
- embroidery_monogram:
- embroidery_line_1: Evan
- embroidery_line_2:
- embroidery_line_3:
- price_cents:
- discount_cents:
- cancelled: false
- returned: false
- is_picked: false
- is_setup: false
- is_wrapped: false
- is_packed: false
- is_prepped: false
- >> bo.shipping_cost
- => #<Money:0x7f3c39429dd0 @currency="USD", @cents=0, @bank=#<Money::VariableExchangeBank:0x7f3c41d67b88 @mutex=#<Mutex:0x7f3c41d67b10>, @rates={"_TO_USD"=>1, "USD_TO_"=>1, "USD_TO_USD"=>1}>>
- >> bo.shipping_method.cost(bo)
- => nil
- >> bo.shipping_method.cost(self)
- NoMethodError: undefined method `subtotal' for #<Object:0x7f3c4901a298>
- ....
- >> bo.subtotal
- => #<Money:0x7f3c39412838 @currency="USD", @cents=6000, @bank=#<Money::VariableExchangeBank:0x7f3c41d67b88 @mutex=#<Mutex:0x7f3c41d67b10>, @rates={"_TO_USD"=>1, "USD_TO_"=>1, "USD_TO_USD"=>1}>>
Add Comment
Please, Sign In to add comment