Closed (works as designed)
Project:
Commerce Shipping
Version:
7.x-1.0-rc1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Oct 2011 at 08:46 UTC
Updated:
4 Apr 2012 at 06:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
googletorp commentedShipping line items are added to the order with reference to the shipping method that created them.
Comment #2
googletorp commentedClosing
Comment #3
davidd07 commentedI am also trying to do some logic on the shipping_method via the hook_commerce_checkout_pane_info_alter() hook. I need to figure out what shipping method was selected and hide the shipping pane if the "Pickup" option was selected on the previous pane. Although I can see the shipping_method handle via $order = commerce_cart_order_load($user->uid) it is deeply buried and makes no sense to me how I can properly reference this variable.
Comment #4
davidd07 commentedA user on this post http://drupal.org/node/1285902 suggests using $order->data['shipping_method'] but this property is not available to me. Any help much appreciated.