Disable shipping information pane for "customer collects" option
Hi,
On our present (non-Drupal) site we have many local customers who order online and collect orders from our shop or workshop to avoid shipping costs, and we also deliver to more distant customers. In Commerce Flat Rate it's easy enough to create a free shipping option for collections, but the customer still has to enter shipping information in order to complete the checkout process, which is confusing for the user.
So, on the Checkout page, I want to offer the user a choice between collection (from either of two locations) or delivery, using radio buttons for example. If the user chooses one of the collection options, I want to hide or disable the "Shipping information" pane and the Shipping checkout page.
I've created simple modules for Drupal sites before, but I don't know how to go about doing this. Any ideas?
Cheers,
Jeff
Comments
some info here
some info here http://drupal.org/node/1285902
it's just a starting point, not a complete solution
Thanks zanami
Thanks zanami, I hadn't seen that before.
Was anyone able to get this working?
I'm also working on this currently. Not by product but rather giving the customer the option of picking up the order or having it delivered.
My idea is to create a module (open to community of course) that will have a radio button field as the top pane on the checkout page with the "Pickup" or "Delivery" options. This would default to Pickup and would have the Shipping information disabled and hidden at the start.
I have two issues currently:
function pickup_or_delivery_commerce_checkout_pane_info_alter(&$checkout_panes) {
$checkout_panes['customer_profile_shipping']['enabled'] = 0;
}
Any one else run into any of this? or care to share any findings?
=>switch13<=
Pete
I wrote a similar solution
I wrote a similar solution and wrote about it here: http://digital54.com/drupal-commerce/dependent-shipping