VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Mister Paul on June 20, 2020, 10:14:26 AM

Title: A more fluid Registration process?
Post by: Mister Paul on June 20, 2020, 10:14:26 AM
Hi,

I see the new account process a little weird:
when the new user clicks on the activation link received by email,
https://www.my-site.com/index.php?option=com_users&task=registration.activate&token=883c557716e6cf576d212a0f28f4c866
it opens (in my case) a new window with the site homepage.

And also the user has still behind the older page created at the end of his registration, where it is said:
QuoteRegistration Completed!
Your account has been created and an activation link has been sent to the e-mail address you entered. Note that you must activate the account by clicking on the activation link when you get the e-mail before you can login.

Do you think that the process after a new user clicks on the activation link received by email could be :
the Registration Completed page gets reloaded with the user automatically logged.
So now he could easiliy proceed to checkout which was the reason he registered...

Does it make sense?
How could I make that?

Thanks for your help!
PAul
Title: Re: A more fluid Registration process?
Post by: AH on June 20, 2020, 11:02:22 AM
Just Turn Off activation

User is immediately registered and active to continue purchase
Title: Re: A more fluid Registration process?
Post by: Mister Paul on June 20, 2020, 11:05:34 AM
Great !

There's no security, or SPAM problems ?
Title: Re: A more fluid Registration process?
Post by: AH on June 20, 2020, 11:38:04 AM
Security - not that I am aware of

Spam

Read the rest of the forum - most people turn off activation in ecommerce implementations as it kills flow and can negatively impact sales

In addition - most people allow guest checkout without registration for the same reason
Title: Re: A more fluid Registration process?
Post by: Mister Paul on June 20, 2020, 11:39:42 AM
Thanks for all!
;)
Title: Re: A more fluid Registration process?
Post by: Mister Paul on June 20, 2020, 12:00:26 PM
Oops me again...
::)

Just after subscription I land in the Account details page where there's:
- Shopper Information fully completed (from subscription form)
- Shipping details completely empty...

The new user has to fill the form again with Shipping details..

Is there a way to fill by default with Shopper Information?
Or to have a checkbox, checked by default, to use Shopper Information?
Title: Re: A more fluid Registration process?
Post by: AH on June 20, 2020, 12:12:19 PM
??

Payment details are often the same as shipping details

If they are - you should need to complete any further information

Give me a screen shot so i can see whay you are looking at

Title: Re: A more fluid Registration process?
Post by: Mister Paul on June 20, 2020, 12:37:34 PM
Just after subscription I get this page with info stored :
https://www.cjoint.com/data/JFukAATlVS1_Capture-2020-06-20-à-12.24.19.jpg (https://www.cjoint.com/data/JFukAATlVS1_Capture-2020-06-20-%C3%A0-12.24.19.jpg)

Trying to go further, I have to click on "Add/Edit Shipping details"
Then I get this blank Account details page but not the Shipping details (I just saw that now...):
https://www.cjoint.com/data/JFukDo1TQ61_Capture-2020-06-20-à-12.25.07.jpg (https://www.cjoint.com/data/JFukDo1TQ61_Capture-2020-06-20-%C3%A0-12.25.07.jpg)
Title: Re: A more fluid Registration process?
Post by: AH on June 20, 2020, 14:01:11 PM
Ah - looks like you are using a template

In base virtuemart you can register from within the checkout process

Add to cart -> complete billing details and registration if required -> register and continue or continue as guest
Complete any different shipping details if required but not necessary if same as billing details

Note - this is a very base and unstyled cart

You should see something like the diagrams below


Title: Re: A more fluid Registration process?
Post by: Mister Paul on June 20, 2020, 14:28:35 PM
Yes almost the same thing here:
I can register from checkout process. (It's what I did)

But after registration, instead of getting back to Cart (Checkout Step 1)
https://www.cjoint.com/data/JFumyvdadh1_Capture-2020-06-20-à-14.17.20.jpg (https://www.cjoint.com/data/JFumyvdadh1_Capture-2020-06-20-%C3%A0-14.17.20.jpg)
I get redirected to this strange/buggy page (Account details):
https://www.cjoint.com/data/JFukAATlVS1_Capture-2020-06-20-à-12.24.19.jpg (https://www.cjoint.com/data/JFukAATlVS1_Capture-2020-06-20-%C3%A0-12.24.19.jpg)

Perhaps is there a wrong redirection link after subscription in the template overriding?
Do you know the php file involved in this process?
Title: Re: A more fluid Registration process?
Post by: Mister Paul on June 20, 2020, 18:03:05 PM
For what I understand this file
templates/flex/html/com_virtuemart/cart/default.php
adds an area in Cart during checkout: « New Here? Create an account »
Fine...

Then if I click on the button "Create an account", it links to: component/virtuemart/user?Itemid=0
But when I validate the form I come to a (buggy?) user edit form: component/virtuemart/user/edit?Itemid=0
-> How could I get, instead, logged in the Cart check out process: component/virtuemart/cart?Itemid=0
Title: Re: A more fluid Registration process?
Post by: GJC Web Design on June 20, 2020, 20:15:49 PM
There is something wrong with your workflow .. after a successful registration you are sent back to the cart to complete shipping and payment .. not to the accounts page

Try the VM demo to see how the native system works
Title: Re: A more fluid Registration process?
Post by: Mister Paul on June 20, 2020, 20:56:26 PM
Yes...
Do you think that the problem comes from the template override (that would have forced the native system) ?
Title: Re: A more fluid Registration process?
Post by: GJC Web Design on June 20, 2020, 22:36:55 PM
normally not .. it is the user controller that decides on the routing
Title: Re: A more fluid Registration process?
Post by: Mister Paul on June 21, 2020, 08:03:44 AM
OK

So... I have 2 other Newbie questions:
- where could I act on these points in the "user controller"?
- how could I set the VM demo on?
::)
Title: Re: A more fluid Registration process?
Post by: AH on June 21, 2020, 10:22:39 AM
I suggest -

Don't go looking too deep as VM core works

Try with the protostar template - without your overrides

Then you can see if that might be the problem

Title: Re: A more fluid Registration process?
Post by: Mister Paul on June 21, 2020, 13:42:35 PM
With Protostar template, after subscription, I am redirected to the cart. Fine.
So it comes from my template... Renaming overrides I found the file involved:
/templates/flex/html/com_virtuemart/cart/default.php

Comparing original and overrided file I got differences of course. But my weak code knowledge didn't let me see the reasons of the bad redirection...
Title: Re: A more fluid Registration process?
Post by: pinochico on June 21, 2020, 14:47:03 PM
QuoteBut my weak code knowledge didn't let me see the reasons of the bad redirection...

Now is time for contacting template developer or hire any developers, because is not error from VirtueMart.
Title: Re: A more fluid Registration process?
Post by: AH on June 21, 2020, 17:12:23 PM
Mister Paul

Good to see you found the source of your issue :-)

As pinochio states - go back to the template developers