With most shopping carts the billing address is always asked for first then you are asked if the shipping address. I would like to know what people think and if ubercart could do reverse them?
Thanks
The DotComSecrets.com Dev team
|
Ubercart |
|
|
|
||
|
Mon, 01/14/2008 - 20:10
With most shopping carts the billing address is always asked for first then you are asked if the shipping address. I would like to know what people think and if ubercart could do reverse them? Thanks The DotComSecrets.com Dev team
Re: Reversing Shipping and Billing address
This is would be a better solution especially when someone purchases a download product,membership etc. When the customer does a second order with tangle goods, they can just check and the shipping address is the same as billing address and it will solve the issue me a Ryan discussed.
Re: Reversing Shipping and Billing address
I'm not sure about "most shopping carts," honestly. Maybe some do, but I've used plenty where this isn't the case. (For example, osCommerce has shipping before billing and Amazon.com takes shipping before billing.) The main reason is that for physical goods, we need a shipping address to calculate shipping before getting billing details. And it's good practice to be able to present an order total before asking for billing information... no hidden charges here. We can tweak the code a little to make it easier to facilitate switching them around (namely that little checkbox for copying addresses), but the default will definitely stay the same. FYI, you can switch the order in your checkout pane settings menu.
Here is a module that switch them.
We program a module to change them. Use at your own risk. It would be nice if you could make it so admin have a choice in how it is done. Thanks The DotComSecrets.com Dev Team
Re: Here is a module that switch them.
Logic has been added to core to support the checkbox in the highest weighted pane. Problem solved.
Re: Re: Here is a module that switch them.
Thanks for adding our suggestion. When checking the copy billing to delivery checkbox, the shipping quote should be triggered. Also, if the copy checkbox is checked and the billing saved addresses is changed, it could also trigger the shipping quote. We had accomplished this by adding the following javascript line:
Thanks, The DotComSecrets.com Dev Team
Re: Re: Re: Here is a module that switch them.
So... where did you guys add that line?
Re: Re: Re: Re: Here is a module that switch them.
Oops! It was a change made after we had uploaded our initial module, of course. The DotComSecrets.com Dev Team
Re: Re: Re: Re: Re: Here is a module that switch them.
I gathered that. I'm just curious where in the code you actually put the line so I can do it in core.
Re: Re: Re: Re: Re: Re: Here is a module that switch them.
In the uc_cart.js file add the following: At the end of the uc_cart_copy_address function add: if (target == 'delivery') {At the end of the apply_address function add: if ((type == 'billing') && copy_box_checked) {The DotComSecrets.com Dev Team
Re: Re: Re: Re: Re: Re: Re: Here is a module that switch them.
I see. Thanks for posting this up.
Re: Re: Re: Re: Re: Re: Re: Re: Here is a module that switch the
This is the best I've come up with after wrestling with it for a while. $("input[@name*=copy_address]").change(function(){This goes at the end of setQuoteCallbacks(products) in uc_quote.js. The problem with it is that the unbind() calls don't work with the version of jQuery that comes with Drupal 5. The real problem is that you can't really upgrade jQuery without breaking some of the JavaScript functionality of Drupal. There might be a way to do namespace tricks to have two different versions of jQuery, but that's way beyond the scope of Übercart. Instead, I'm going to try to see if I can prevent the 10 bajillion calls to set_line_item() whenever the address is changed.
jquery-update module
btw, the unbind() function works very well after installing the jquery-update module. |
|