Hi,
thank you for the work on this module!
I wrote some custom shipping-service making it possible to customers to select a 'pickup at office'-option.
It would be great if there could be the possibility to remove shipping the information-form or make it not required when this service is selected, saving customers from typing unnecessary information.
Can you help me with some hints?
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | pickup_or_delivery.png | 10.5 KB | switch13 |
Comments
Comment #1
googletorp commented#1452322: Rule to Auto-add shipping service should be able to help you.
Comment #2
ibot commentedSorry to reopen.
I think my question was a little confusing..
My problem is about:
how to remove the 'shipping information form' ("customer_profile_shipping"-pane - where one enters the shipping address) or how to make it not required if a specific shipping service is selected.
Best,
T.
Comment #3
hotciuk commentedHello
I've the same problem..
i need to remove the shipping information form if the customer choose the "take to the shop" shipping method.
Thank you, Claudio
Comment #4
googletorp commentedThis seems like a Drupal Commerce thing.
Comment #5
rszrama commentedThe short answer is hook_form_alter()... the long answer is that this just requires code and can either reside in the Commerce Physical Products module or perhaps even Commerce Shipping at some point in time. For now here's the duplicate issue in the Physical Products queue:
#1390190: hide shipping pane for non-shipping product
Comment #6
googletorp commentedRyan - Maybe we should consider making a is_shippable check on products as part of the shipping flow. That would make it possible for us to remove the shipping pane if there are no shippable products in a sensible way.
By default all products should be shippable, but we could make a hook much like the node access grant system, where modules can say, I don't care, or force the system to say is not shippable or is shippable.
Does that make sense?
Comment #7
rszrama commentedHmm, Commerce Physical Products does have an API function to determine the shippability of an order based on whether or not any line item in the order is shippable. By default, it only considers a line item shippable if it's for a product that has one of the module's own weight fields attached to it, but it leaves a hook open for any other module to specify an alternate method.
I didn't bake this into Shipping 2.x originally because I didn't want to force people to have to use weight fields, for example, if they knew everything on their site shipped for a flat $5. There's no good reason to require the weight field if you aren't doing weight based shipping, though there may be good reasons to make it optional.
However, we could introduce some setting form (perhaps in Commerce Physical Products) that let the administrator opt-in to just assuming everything in the store is shippable by default instead of non-shippable, but in those cases the site would never need to disable the shipping pane. The question then I guess would be how to determine which products weren't shippable.
Comment #8
artatac commentedCould there be a tickbox field within Commerce Physical Products that defaults to true but in sites that have a mixture of products (shippable/non-shippable) you can then untick when not required. I seem to remember that was how it worked with ubercart.
Comment #9
savingstrangers commentedI definitely need this exact functionality, subscribing!
Trying to get a "In-Store Pickup" shipping option to not make the customer fill out Shipping Info on the following page. Thanks!
Comment #10
pixhail commentedGuys, i have wriiten custome module for this. what it does:
there is a boolean value, in the form of checkbox. if checked, means items are shippable, and during checkout, shipping info pane would be seen. But if not checked, means non-shippable, then during checkout, no shipping info pane would be seen.
Contact me, if you want to see it and the module.
Comment #11
Anonymous (not verified) commented@pixhail
When developers are working on a solution that will benefit themselves and the community, please don't add trash to the conversation by submitted your paid module plug as a solution. It doesn't contribute to the community. I'm sure people would be willing to donate, but don't sell a module in the issue cue of a project like this. It gives false hope.
Comment #12
switch13 commentedI'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:
Any one else run into any of this? or care to share any findings?
=>switch13<=
Pete
Comment #13
ari-meetai commentedPerhaps http://drupal.org/node/1518034#comment-6233962 ?
Comment #13.0
ari-meetai commentedrefined request