If anonymous checkout is enabled, the module should check existing order base on email address rather than uid.

The issue now is when the user is not logged in, and enters an email that has been used before, the First Time Customer condition is still valid - Expected results should be invalid.

Comments

jonloh created an issue. See original summary.

jonloh’s picture

Here's a patch to handle the case when $uid == 0.

jonloh’s picture

Ignore the patch above - Somehow PHP 5.4 doesn't play nice with some shortcuts.

Use this patch instead.