Hi,
I tend to find that most users would like their billing and delivery addresses to be the same, so it makes sense to make this the default behaviour.
Unfortunately, the JS that powers this doesn't listen to the checkbox being checked by default, so that's not an option. There's some hacks out there that I've used before:
http://www.ubercart.org/forum/support/9447/assume_billing_shipping_default
http://www.ubercart.org/forum/support/6830/delivery_and_billing_informat...
But these aren't really ideal.
So I've created a patch that makes a new checkbox option in the checkout settings to do this by default. It required a minor change to the Javascript to support this.
A side effect of the uc_cart-side changes is now if there's a validation error when the addresses are the same, it doesn't uncheck the checkbox again, which our users find confusing. It doesn't solve the problem of reporting the field errors twice though.
Hope this is helpful for someone and/or can make it into core!
Thanks
Comment | File | Size | Author |
---|---|---|---|
#7 | 994236-7-uc-support-copy-billing-delivery-default.patch | 6.01 KB | sambonner |
ubercart_default_copy_address.patch | 6.15 KB | neilnz | |
Comments
Comment #1
longwavehttp://drupal.org/project/uc_checkout_tweaks includes this feature (and more!)
Comment #2
neilnz CreditAttribution: neilnz commentedI see it implements it with a second JS load event, which I guess works fine too. That's how I used to do it.
I still think this belongs in core though, since it's a fairly minor change that makes Ubercart more useful out of the box.
I'm generally not a fan of these big Ubercart contrib modules that do more than one thing (eg. UC Power Pack), even though they contain useful features, it's hard to get just the ones you want.
Thanks for the pointer though, I'll have a closer look at the server-side bits of that code.
Comment #3
bwynants CreditAttribution: bwynants commentedsomebody converted this for 7.x?
Comment #5
TR CreditAttribution: TR commentedNew features should go into Ubercart 7.x-3.x first, then be backported to 6.x-2.x if needed.
Comment #6
longwaveMarked #1203782: set default for copying delivery info into billing fields as duplicate.
Comment #7
sambonner CreditAttribution: sambonner commentedRerolled patch to apply on top of 2.13.