VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Alexb65 on June 23, 2023, 08:58:23 AM

Title: Rev 10876: Cart not asking for user data on checkout
Post by: Alexb65 on June 23, 2023, 08:58:23 AM
Hi all
I built the version from SVN revision 10876 for development purposes.

When the user clicks the buy button on checkout and he is not registered and has not entered his data, the cart simply reloads the cart page itself with no error or messages.

Previous versions did correctely  redirect the user to let him register or enter his data

I suspect this is somehow related to changes due to the new paypal functionality

Is anyone  else experiencing the same?
Title: Re: Rev 10876: Cart not asking for user data on checkout
Post by: Alexb65 on June 26, 2023, 08:38:54 AM
I digged a lilltle bit on this problem and discovered that change in rev 10874 is responsable

Reverting the change in file

virtuemart/components/com_virtuemart/controllers/cart.php

line 103 back to

$redirect = (isset($request['checkout']) or $task=='checkout' );

instead of

$redirect = vRequest::getCmd('redirect', null);

in Joomla 4 the registration on checkout issue goes away and the user is correctly asked to enter his data or register
Title: Re: Rev 10876: Cart not asking for user data on checkout
Post by: Milbo on June 28, 2023, 10:42:06 AM
okey,
thank you, reverting that.