Lunarhotel.co.uk

How about a view of the sea of tranquility?
Home Support Dealing with Optional user registration in Virtuemart
E-mail
Print
PDF
Written by Web Master   
Wednesday, 13 January 2010 19:08
User Rating: / 0
PoorBest 

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!

  1. 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")
  2. Browse to your Virtuemart registration page, and then open your sites admin section in another tab / window.
  3. 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.
  4. 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.
  5. Download the attached file and copy it into the /administrator/components/com_virtuemart/classes folder.
  6. 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
 

You must register if you wish to comment

Its official! usernames suck!

12507Check out the 10 mile round trip I had to do to login into a site that was asking for a username and password

Whos online

We have 1 guest online

Joomla EmailAsUsername Testamonials

"Thanks for a great plugin, and speedy helpful support."

"I really appreciate how responsive you have been and I want to reward you by adding a very positive comment on the Joomla site where I found your great plugin"

"Wow, tested it out and works like a champ"

"I had a couple of installation issues which Dylan sorted for me the same afternoon. Superb service for the price."

"Thank you!!!  Best support I have ever had!"

"Thank you soooooo much for your time and effort on this, you're a life saver!....If your ever in the London or Guildford area I'll get the beers in!"