News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Keeping registration fields value on unsuccessful registration

Started by dnlvsci, August 13, 2019, 17:08:46 PM

Previous topic - Next topic

dnlvsci

Is there a way to keep registration fields content under the registration when something failed on registration process? It is annoying when user name is already used,  or 2nd password not matching, the registration page reload and all fields are empty, so you need to start over the whole form filling from the beginning and not just fix the incorrect filed. The normal joomla registration store the fields value in the session/state...

I tested on J3.9.10 and VM 3.5

Thank you

StefanSTS

One reason I use Virtueplanets One Page Checkout.
A good template should do that too. The more of these things in the core, the more can interfere with templates, so I am quite happy, VM is doing nothing in that area.

Stefan
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

dnlvsci

Yes that working in the cart, but not on normal registration process (from login module, joomla registration redirect etc)...

StefanSTS

You should block the "normal" registration process and the joomla registration redirect for guest users.

Just let them register via cart. Keeps a lot of spamers out too.
One simple way for your users, not different path ways. Once they are registered and want to change their address, give access to the edit address layout.

Stefan
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

Milbo

I wonder, because the fields should be stored in the cart object and therefore reloaded. But as stefan said, it is not done per js or so.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Milbo

I just tested it on the last dev version and it works as expected
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

dnlvsci

Quote from: Milbo on August 14, 2019, 11:27:46 AM
I just tested it on the last dev version and it works as expected

Indeed. Working well if you registering through cart, but not when you try to register xxxx.tld/index.php?option=com_virtuemart&view=user (joomla registration redirected url) When some data failing, you will be redirecting to xxx.tld/index.php?option=com_virtuemart&view=user&layout=edit  BUT not the url mismatch cause the problem (i tried to register throught xxx.tld/index.php?option=com_virtuemart&view=user&layout=edit in this case the url/redirect url doesn't changed, but fields are empty too after redirecting)