I have a product and selected "Create an account for the user when this product is purchased." Anonymous purchasing policy is set to "Anonymous only" globally and for the product.

Placing an order did not result in a user being created.

I made a code tweak that worked for me. I haven't tested it in other scenarios due to lack of time.

CommentFileSizeAuthor
ec_useracc-patch.txt655 bytesjbjaaz

Comments

B747’s picture

How exactly do I apply this patch, please?

jbjaaz’s picture

unfortunately, I can't easily explain that in a post. Check out Drupals Patches section for an overview as well as applications you can use.

As a last resort, you can email me and I'll send you the modified module file.

gordon’s picture

What version of PHP are you using?

I am guessing that it is v5.x as this will have problems

gordon’s picture

Also I noticed that there will be a problem if you are using paypal.

jbjaaz’s picture

I can't speak for heebiejeebieclub, but I'm rocking php4 and authorize.net

Macc’s picture

This fix is not working for me! I have to finish a webshop, but i can't without this featuer. I really need it, and would pay for your extra work!

gordon’s picture

Status: Needs review » Postponed (maintainer needs more info)

Can you please expand on this patch and explain more on what it is doing.

ms2011’s picture

Same problem here. I'm selling a generic product via anonymous checkout to PayPal and generating a new user account at sale confirmation. Unfortunately, ec_useracc.module fails to create a new account for anonymous users 'on payment completion'.

The patch works for me. Thanks jbjaaz! :)

capmex’s picture

Same issue while testing e-Commerce 5.x-3.3, fixed using this patch. PHP version 5.2

theorichel’s picture

I am on Drupal 5.11, PHP 5.1.4, ECommerce 3.5 and lo and behold, after six months struggling I found this patch. It is too late to give me any positive thoughts about e-commerce, but it works at last. Thank you Jbjaaz!

davea’s picture

Version: 5.x-3.0 » 5.x-3.x-dev
Status: Postponed (maintainer needs more info) » Fixed

committed and fixed in 5.x.3.x-dev

theorichel’s picture

I updated to 5.x-3.x of nov 17 and now it doesnt function anymore. No user accounts are created, no mails are sent to new users either.
Have reinstalled my 'own' working version of the user account module, but apparently the error is elsewhere, it still doesnt work. Of course I ran update.php

davea’s picture

Status: Fixed » Closed (fixed)

Closing this issue- This is identical to http://drupal.org/node/233444

Thanks,
DaveA