VirtueMart Forum

VirtueMart 2 + 3 => General Questions => Topic started by: Andyfoo on January 13, 2012, 21:06:58 pm

Title: How to display Registration Form?
Post by: Andyfoo on January 13, 2012, 21:06:58 pm
This is probably simple, but I cannot figure it out. I'm new to VM, using VM 2.0.0 and J1.7. I have figured out how to display "Account Maintenance" as a menu item. But, I cannot figure out how to display the "Registration Form". There is no option to display it as a menu item. Can someone please explain the steps to showing the Registration form?

Thanks,
-Andy
Title: Re: How to display Registration Form?
Post by: jamedia on January 14, 2012, 05:10:00 am
Virtualmart 2 use joomla's registration and login.
Title: Re: How to display Registration Form?
Post by: juagicre on January 14, 2012, 13:55:29 pm
nice... does it mean that all of them are treated as customers???
not anymore the famous: "Info: You are not a Registered Customer yet. Please provide your Billing Information."????
Title: Re: How to display Registration Form?
Post by: Andyfoo on January 14, 2012, 16:32:09 pm
Thanks, that's great to hear. Now, how did you know that? Is there some VM2 documentation somewhere?

-Andy
Title: Re: How to display Registration Form?
Post by: jenkinhill on January 14, 2012, 16:46:38 pm
Now, how did you know that? Is there some VM2 documentation somewhere?

It has been mentioned several times in this forum. It is a good idea to read one or more threads before asking a question. Chances are it is already solved.
Title: Re: How to display Registration Form?
Post by: Milbo on January 15, 2012, 19:47:06 pm
just open the accountmaintance as anonymous user, fill out the form press save (register?) and it is like registering. There are some minor gui issues. The fields you need for the registration are configurable. But for your customers the registration during the checkout process is more interesting :-)

You can also just use the joomla login/register, but then they are missing the addresses, but it works.

A bit more information about this here  http://forum.virtuemart.net/index.php?topic=96356.0
Title: Re: How to display Registration Form?
Post by: JohnnyC on January 16, 2012, 09:52:07 am
VM2 registered users are also shown in Joomla and vice versa! But there is a problem. Not all the profile information are "copied" (address, phone number, city etc) but only the name, username an email (and password of course). So if someone register through Joomla's form an logins, his personal information will not be displayed in VM account/shipping/receipt information and he will have to reenter it.
Is there any solution on this, like synchronize the additional information too?
Title: Re: How to display Registration Form?
Post by: Milbo on January 16, 2012, 11:20:08 am
you mix the joomla users with their contact (com_contact).

Due j1.5 and j1.7 and other reasons, we decided not to use com_contact. Use Community Builder instead. There is a coorperation with them
Title: Re: How to display Registration Form?
Post by: jenkinhill on January 16, 2012, 11:22:36 am
VM2 registered users are also shown in Joomla and vice versa!

That is exactly how it was in VM1.0 and 1.1 as well.
Title: Re: How to display Registration Form?
Post by: JohnnyC on January 16, 2012, 17:45:13 pm
Ok, you will have to excuse me once more but I am very new with Joomla and VM so I will have to ask for some more information (a little more detailed) on how to do that! I have the feeling that I am very close to that... I found the new accounts, even those that I had deleted (!!?) at the contacts page... And after that, what? How will VM "read" and use the information? I mean, without the administrator copy them, but automatically...
Title: Re: How to display Registration Form?
Post by: Milbo on January 17, 2012, 00:11:15 am
the com_contact is NOT the joomla user information....

you create their contacts, which can be connected to a joomla user. It is meant for a contact page, not more. When you register to joomla, you cant enter this information. It must be administrated and is not what you need. When you want community stuff, you should try something like Community Builder.
Title: Re: How to display Registration Form?
Post by: JohnnyC on January 17, 2012, 08:16:35 am
Community Builder will substitute the default Joomla login/register methods. But will it synchronize the profile fields with the Virtuemart 2 ones, so the user will automatically become a shopper with all the user information copied? Also will CB work with jNews, an application for newsletter subscription that automatically takes the new users?
I thought of a hack but I don't know if how can be done or how "easy" it is... Somewhere in VM2 there is a code that "grabs" the basic info of a user (username, email, password) and creates the shopper. If, somehow, we told it to grab some other certain fields? Just a thought...
Title: Re: How to display Registration Form?
Post by: lipes on January 17, 2012, 14:02:22 pm
The user registration form its very strange form me :(
To solve this situation we should insert a link to http://localhost/mp2/index.php?option=com_user&view=register   ???
And not to /index.php?option=com_virtuemart&view=user   ???

And if Users want to change their configuration They need so many input forms to change everything like Costumer ID, See their Shopper Group, etc.. why this is not hidden? :/


Any help in my full post here: http://forum.virtuemart.net/index.php?topic=96529.msg317613#msg317613
Title: Re: How to display Registration Form?
Post by: Milbo on January 17, 2012, 17:27:42 pm
There exists this link, what do you think is used in the cart?
The normal behaviour of a shopper is not to register and to shop then. you can register while checkout, so why not using this?

And you can use this as register, we just forgot to add the xml for it, so that you can choose it in joomla. Hmm and an extra follower task, so what do you think about this index.php?option=com_virtuemart&view=user&task=edit as registration form? We go to add it that way then.

you may use as test an external link and http://youdomain/index.php?option=com_virtuemart&view=user&layout=editaddress
Title: Re: How to display Registration Form?
Post by: JohnnyC on January 17, 2012, 21:25:39 pm
Correct me if I am wrong but what you say is to change the registration link mydomain/index.php/el/login?view=registration with the VM registration? What's the way to do that? And what about the profile edit links? They will have to change too...
Title: Re: How to display Registration Form?
Post by: lipes on January 17, 2012, 21:41:44 pm
JohnnyC: we must pray to VM developer change the coding in next the User registration file of V.M.2.0.0001 :(
I will like to see progress in this strange situation.. if someone could do something we bless them.
but let's wait...
Title: Re: How to display Registration Form?
Post by: jamedia on January 17, 2012, 23:49:35 pm
I would like to see VM with an option where customer can register directly through VM and also a second option where they can do on a checkout like they have it now.

Thank You
Title: Re: How to display Registration Form?
Post by: Milbo on January 18, 2012, 00:39:25 am
no, it is quite easy you can do it directly now, just not completly clicki, you need to copy this
/index.php?option=com_virtuemart&view=user&layout=editaddress

Go in your menuitem, choose external link or so and use the link above, done. It is already working. Just the xml is missing so that you can choose it in the menu item manager.
Title: Re: How to display Registration Form?
Post by: jamedia on January 18, 2012, 03:39:04 am
Hello,

Actually I tried that a while back by using that exactly link while working on this site www.geniusplanet.com but I kept getting an error "Please enter your name." For me it only works if you are sign into the site.

Is anybody else getting this error?
Title: Re: How to display Registration Form?
Post by: JohnnyC on January 18, 2012, 09:04:34 am
The same subject is being discussed here
http://forum.virtuemart.net/index.php?topic=96215.0

so we can have one topic for that...

@ jamedia: The path Milbo posted works, check your required fields.
It shows all the information that the admin can see or edit, and the simple user doesn't has to. So there is the need to hide some fields or make them uneditable. Also it is a good idea to embed it in a login module like Joomla's, at the "Create account" link. After that the "Edit account" is easy to be created (link to the same path). BTW is there something like "View profile", as summary or something without editable fields?
Title: Re: How to display Registration Form?
Post by: Milbo on January 18, 2012, 11:33:58 am
it is the account maintance. The fields are also adjustable.
Title: Re: How to display Registration Form?
Post by: JohnnyC on January 18, 2012, 12:08:12 pm
Hmmm... Fields like Group (General User Information) or Shopper Number / ID and Shopper Group (Additional Information) are not adjustable or listed in the User Fields... Those fields are not needed to be shown to the simple shopper (only admin). Is there such a way to do that?
Title: Re: How to display Registration Form?
Post by: lipes on January 18, 2012, 16:58:24 pm
Same problem here. We only got the Configuration > Shopper Field
with: email, Passwoed, pass2, agreed, name, username, Address Nickname, Bill To Information, Company Name, Title

and it's all we got to customize all categories in the new VM User registration form...
My full post here with images: ( http://forum.virtuemart.net/index.php?topic=96529.msg317613#msg317613 )
Title: Re: How to display Registration Form?
Post by: JohnnyC on January 18, 2012, 17:05:23 pm
If we hide them through the code, they will disappear for all users including admin... We don't want it...
Title: Re: How to display Registration Form?
Post by: Milbo on January 18, 2012, 18:23:22 pm
yeh, yeh, saw it. I thought it looks like /index.php?option=com_virtuemart&view=user&task=editaddresscart&addrtype=BT.

I will create a layout and xml for this.
Title: Re: How to display Registration Form?
Post by: Milbo on January 18, 2012, 19:53:33 pm
When you want to try the svn, then this link /index.php?option=com_virtuemart&view=user&layout=edit_address is exactly giving what you want.

You can also use the template override possibilities to have a  better layout of your account user maintance. It is mainly a gui thing. Or you wait for the next installer.
Title: Re: How to display Registration Form?
Post by: lipes on January 18, 2012, 22:31:57 pm
/index.php?option=com_virtuemart&view=user&task=editaddresscart&addrtype=BT

Great!! This Link to User Reg. Form seems Fantastic!
It will be the Default for next version installer? I hope so!! :D
Title: Re: How to display Registration Form?
Post by: lipes on January 18, 2012, 22:35:12 pm
Great Job Milbo! Amazing... it works by the address that you sent.. finnallyyyyy.. ufff!!! :D

displaying message:
"Info: Registration Complete!
No payment method has been configurated
No shipment method has been configurated"


But one thing....

In the "Shopper Information" Painel we got the same problem painel in user area:

"User Permissions:    shopper here
Customer id/Internal VM user ID:  ....the encryted number here ...
Shopper Group:   here ...."

This will not be dangerous information by giving this data to anyone else?
Title: Re: How to display Registration Form?
Post by: JohnnyC on January 18, 2012, 23:05:19 pm
Actually it is something between
/index.php?option=com_virtuemart&view=user&layout=edit_address
and
/index.php?option=com_virtuemart&view=user&task=editaddresscart&addrtype=BT

The first has all the information, including those that aren't needed but the right buttons, "register" and "cancel" for new user and "save" if someone is already logged in and wants to change the information.
The second has only the appropriate information fields but the buttons are those of the billing info. If someone wants to create an account it is not right to have the "register and checkout" buttons...
I think the first path was better... Or something new could be created to use the form o the second and the buttons of the first? In addition could this path be connected with the "create account" of the login module or a new VM login module?
Title: Re: How to display Registration Form?
Post by: Milbo on January 19, 2012, 15:23:58 pm
Yepp, I made the corrections, they are in the svn since yesterday, I am quite sure we upload a presubrelease this evening or tomorrow.
Title: Re: How to display Registration Form?
Post by: JohnnyC on January 19, 2012, 20:23:28 pm
Ok, so one of those two paths will work on the right way. Will be created a VM login and create account module too? Or modify the Joomla's one? It would be usefull a module like this to login and create account for VM.
The changes will be published at dev.virtuemart?
Title: Re: How to display Registration Form?
Post by: JohnnyC on January 24, 2012, 12:37:17 pm
Is there something new on this problem? I haven't found anywhere a new VM release or update. Have we done anything for the VM user registration?
Title: Re: How to display Registration Form?
Post by: lipes on January 24, 2012, 13:44:41 pm
There no update news...
You could see that info on the Time spend by dev team...
in the files http://dev.virtuemart.net/projects/virtuemart/files (http://dev.virtuemart.net/projects/virtuemart/files)...
Or in the open issues ...

They are the same still 20/12/2011 00:21  :S
Title: Re: How to display Registration Form?
Post by: JohnnyC on January 24, 2012, 14:13:47 pm
I know, that's what I everyday see...
So we haven't found any solutionyet, except the link /index.php?option=com_virtuemart&view=user&layout=edit_address that has information aren't needed. And what about the login module?
Title: Re: How to display Registration Form?
Post by: jenkinhill on January 24, 2012, 23:17:27 pm
There no update news.

http://forum.virtuemart.net/index.php?topic=96945.0
Title: Re: How to display Registration Form?
Post by: lipes on January 25, 2012, 00:46:17 am
Thanks jenkinhill! :D allways on top of things
Title: Re: How to display Registration Form?
Post by: JohnnyC on January 25, 2012, 09:50:19 am
http://dev.virtuemart.net/attachments/download/372/com_virtuemart.2.0.1_extract_first.zip (http://dev.virtuemart.net/attachments/download/372/com_virtuemart.2.0.1_extract_first.zip)
is not there (404-not found).
Will it be published at http://dev.virtuemart.net/projects/virtuemart/files?sort=created_on%3Adesc%2Cfilename (http://dev.virtuemart.net/projects/virtuemart/files?sort=created_on%3Adesc%2Cfilename) ?
Title: Re: How to display Registration Form?
Post by: lipes on January 25, 2012, 12:51:20 pm
here: http://dev.virtuemart.net/projects/virtuemart/files

com_virtuemart.2.0.1_extract_first.zip
Title: Re: How to display Registration Form?
Post by: JohnnyC on January 25, 2012, 13:09:36 pm
Thanks!