|
If you purchased your plugin after 29 March 2010, then the version you have will support Virtuemart optional registration straight out of the box. Only use these instructions if you are using version 1.x of EmailAsUsername
A recent email from a user of EmailAsUsername highlighted the need to use our EmailAsUsername plugin with optional registration enabled.
When optional registration is enabled in Virtuemart, the user is given the choice of whether to register or to checkout with out having to enter a password. (e.g. just entering shipping and billing information)
The information here is provided as is. Use it at your own risk. We will not be held responsible for any loss due to following these instructions.
The users choice is displayed by means of a checkbox that is shown on the Virtuemart registration page. This checkbox is only displayed, when the username field is displayed, and because the EmailAsUsername plugin works by hiding this field, it meant that the checkbox also remained hidden. There is a way around this problem however, but it does require a core hack to one of the Virtuemart files.
Take a backup of /administrator/components/com_virtuemart/classes/ps_userfield.php before copying in the version attached to this article!
- If you havent already, set the User Registration type in the Virtuemart configuration page to "Optional account creation" (about halfway down the page under "User Registration Settings")
- Browse to your Virtuemart registration page, and then open your sites admin section in another tab / window.
- Install the EmailAsUsername plugin. You can get a copy here if you dont have it. If its already installed, goto the plugin configuration screen and set the Virtuemart username field state to show.
- Go back to the Virtuemart registration page, and refresh. You should see the username field reappear. The Virtuemart username field state will now be set to passive. You can check this if you want, but it is not required.
- Download the attached file and copy it into the /administrator/components/com_virtuemart/classes folder.
- Go back to the EmailAsUsername plugin configuration and set Virtuemart username field state to hide. Refresh your Virtuemart registration page once more, and the username should no longer be visible. The "optional registration" checkbox however should remain.
 |
|
Last Updated on Monday, 29 March 2010 08:27 |