VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: Patricck on November 25, 2015, 12:34:59 PM

Title: User registration - login first
Post by: Patricck on November 25, 2015, 12:34:59 PM
Hi all,
i am new to virtuemart,

After playing with menu items users are unable to register, and don`t know where the issue is. After clicking registration button - it jumps to users need to login first page.
After turning off Search Engine Friendly URLs, suddenly users are able to register again, but i would like to use Search Engine Friendly URLs.

My joomla version is: Joomla! 3.4.5 Stable
PHP Version: 5.5.5

i am using the menu item:
Virtuemart - Account maintenance Menu item type for registration.
tested it also with external URL:  index.php?option=com_virtuemart&view=user&layout=edit

It was working before i started to make changes with menu items and started to configure the page.

Also got:
New User Registration Group: Registered
Guest User Group: Guest

Could somebody help why is the  Search Engine Friendly URLs messing up my user registration?

Thank you very much

Kind regards
Patrik
Title: Re: User registration - login first
Post by: Patricck on November 25, 2015, 19:14:23 PM
Finally figured it out, in case somebody else would have the same issue:

I had two menu items with same link:
"index.php?option=com_virtuemart&view=user&layout=edit"

One for Guest, and one for Account maintenance.

For Guest it was "Register"
For Registered access it was "My account"

I had to remove the "My account " Menu Item, as if you have it twice, url rewrites are messing it up.

Thanks for the help.

Regards
Patrik
Title: Re: User registration - login first
Post by: Milbo on November 27, 2015, 14:22:58 PM
Actually that should work, I wonder. Do you use any SEF extension? Do you have different languages?
Title: Re: User registration - login first
Post by: GJC Web Design on November 28, 2015, 01:54:52 AM
QuoteFor Registered access it was "My account"

imho this always breaks the registration/cart.. creates a loop

I hide the my account with conditional on user id css
Title: Re: User registration - login first
Post by: Patricck on November 28, 2015, 19:05:19 PM
I am using only one language, but not english, no SEF extension. But all is working now :)
Title: Re: User registration - login first
Post by: garikello on December 01, 2015, 21:32:18 PM
I have same issue, but I am unsure what creates it.

I have menu items for registered users, tried to disable them, no change.

I am using ARTIO Jomsef. Checked the links, I didn't find that those would be messed up.

Any suggestions what to look for?

P.S. Perhaps it is worth mentioning that I migrated the shopper fields from VM 1. Perhaps I need to add some shpper fields registration to work.
When I deleted the menu items as Patricck suggested, I have another wrror - feld name is not filled...
Also, I use site in one languge frontend (Latvian), but I have 3 installed, and am using English backend.

I have Joomla 3.4.5 Stable on v5.6.15 PHP with VM 3.0.12.
Title: Re: User registration - login first
Post by: GJC Web Design on December 02, 2015, 00:14:48 AM
QuoteARTIO Jomsef

Have u tried with this disabled?

IMHO the case for using any sort of 3rd party SEF ext doesn't exist.. it just adds overhead and complication and on occasion breaks things.
J & VM are perfectly able to produce just about any url construction if you are sensible and organised with your aliases
Have never used any SEF ext since the last Joomla 1.5 versions
Title: Re: User registration - login first
Post by: garikello on December 02, 2015, 00:30:45 AM
Yes, I tried disabling Jomsef. No change.
(I need it because of metadata generation... Joomla does not that on its own as far as I know)

I get dropped to the account page with same error or without it.

I am thinking perhaps there are some Joomla core shopper fields missing. I can't see which ones though.

Is there a list of must have shopper fields, so it is possible to use VM account page for registering users?
Title: Re: User registration - login first
Post by: GJC Web Design on December 02, 2015, 00:43:49 AM
just use the VM demo to see  http://demo.virtuemart.net/

to reg u need

Title: Re: User registration - login first
Post by: garikello on December 02, 2015, 01:15:00 AM
Well, in that case I have these fields included...

No idea then, what causes the error.

You can see this your self - www.lynxgear.lv
Press - Registreties (Register)
Title: Re: User registration - login first
Post by: garikello on December 03, 2015, 21:29:12 PM
I checksed my other website, where shopper fields are set by default. No changes were made to the fields.

I can register a user on that page from VM account page.


On my page however, where I have migrated shopper fields from older VM (v1) and edited shopper fields, I can't register users and get thrown to the account page with error - login first or please put in the name.

Is there a way to restore shopper fields as they were by default. It is important that this action does not let the data to be lost from registered users...

Any hints?
Title: Re: User registration - login first
Post by: GJC Web Design on December 03, 2015, 23:57:39 PM
hidden vm cart or account menu set to registered?
Title: Re: User registration - login first
Post by: garikello on December 04, 2015, 00:10:14 AM
Account menu is set to registered, but changing that, does not change anything.

Someone should make a comparison tool, which could comparison files of your customized website to the default one. And same goes for comparison database files...
Title: Re: User registration - login first
Post by: GJC Web Design on December 04, 2015, 00:35:45 AM
wrong .. Account menu is set to registered  will do exactly as your describing...  send you to the login when u try to register
Title: Re: User registration - login first
Post by: garikello on December 04, 2015, 01:15:10 AM
I will continue experimenting on this I guess. But, why is this a problem in the first place? Isn't it logical that I place account menu and set it as registered?