It would be great for ec_anon users to get the same address filling process as registered users, i.e.
1. fill in shipping address
2. select 'billing is same as shipping'

rather than the current process which requires they type their address twice (unless of course they have different addresses)

Comments

Bevan’s picture

elio’s picture

Flexicharge don't work with addressed submited with ec_anon, I need to fix it, do you know something about anon and address integration problems?
I look forward...

sime’s picture

elio, please open a new ticket against flexicharge rather than spamming every shipping/address ticket you can find.

elio’s picture

Sorry, I opened.... yes you were righ I was in panic.

notauseranymore’s picture

Version: 5.x-3.0-beta3 » 5.x-3.x-dev
Status: Active » Needs review
StatusFileSize
new1.6 KB

I wanted the same feature.

A 'shipping address is same as billing address checkbox' so users don't have to fill in their address twice.

Here is a simple 5.x patch to address.module to provide this.

Christopher Hamersley
www.hemisphere3.com

Bevan’s picture

Cool!!! My client's site is launched and he's happy with it (didn't comment on this). But I'll check your patch out and integrate when we next do a revision... tks

sime’s picture

Title: Address details for ec_anon users » Checkbox for shipping same as billing.

Bump. Patch here for "shipping same as billing address checkbox"

Striatum’s picture

can you integrate this for 3.4 or update the patch to work with 3.3?

Bevan’s picture

This issue is set to version 5.x-3.x-dev -- so it should work with the most recent version of EC in the 3.x series.

Can anyone who has used this patch please report successes and/or failures...

Striatum’s picture

I tried with 3.3 and both hunks fail

gordon’s picture

Status: Needs review » Closed (won't fix)

This is a new feature that will not be included into v3. Normally I would commit something like this into v4, but this entire area has been re-written and this will not apply.

Please feel free to port this to v4 and resubmit.

smoothstr@drupal.org’s picture

Thanks for your patch Christopher. I'll be applying it to a customer's new 5.2 site because I've just discovered that this still hasn't been sorted, which is quite surprising seeing as this is one of those basic usability things that it seems to me that anyone who is running ecommerce and selling anonymously would want.

[mild rant]It's a bit of an annoyance that this bit of code has been written several times and hasn't yet been accepted. I think I had the same response to my version of this which was against version ec 2. I did make the mistake of also fixing a bunch of other address problems at the same time, which made the patch complex, and not having the time to port the patch to head. Still it made our customers happy, even if nobody else who runs Drupal ecommerce benefited from the work. [/mild rant]

Gordon, it's a pity that Christopher submitted this in April, but it's taken till August till he got a reply. I expect that there are good ways that people could help. Maybe if you put a link in your signature to ways to help/stuff that needs doing/procedures node? Just to clarify because writing like this doesn't convey tone well: I am not criticizing or being snippy - I know you have done a vast amount of work towards ecommerce - I'm trying to figure out ways to help within limited time because it looks like there's a process problem.

jeff

[Update on preview: Yes, I was being snippy with the mild rant even though it was my fault: if I wanted it in ec, I should have patched against head. But I don't run head, and neither do our customers and time is always a problem.]

biohabit’s picture

I also really need this feature, has anyone got it working with 3.3?

Phillip Mc’s picture

the patch posted by kaksisa works with the address.module for version 5.x-3.4

just thought I'd mention it.

Phil

reg’s picture

I was looking at the patch and I can't see how it it correct. These lines say:

if ($txn->address['shipping']['shippingSame']) {
$txn->address['shipping'] = address_get_address($txn->billing_address);
} else {
$txn->address['shipping'] = address_get_address($txn->billing_address);
}

if one thing then do something but if not do the same something ???

djflux’s picture

StatusFileSize
new1.41 KB

FYI, I was getting the following error for logged in users that already had billing and shipping address in their address book and went back during the checkout process to change an address:

Cannot use object of type stdClass as array

To duplicate:

. Login to a Drupal site using eCommerce 5.x-3.x using the address book
. Create addresses in the address book
. Add an item to the cart and go through the check process to the review screen
. Click on the "change" option for one of the addresses
. Click the continue button

You will receive a blank screen in your browser and the above stdClass error.

I just reverted to the standard address behavior for logged in users ($txn->uid > 0 ).

I've attached a patch that includes everything the above patch has without the logged in user part.

miahawk’s picture

I tested the patch in post #16 in eC 3.5 and it works.

enxox’s picture

seem to work for me in 3.5 too