News:

Support the VirtueMart project and become a member

Main Menu

Wrong redirection after account creation…

Started by Mister Paul, January 20, 2024, 22:31:05 PM

Previous topic - Next topic

Mister Paul

Hi,

I am using VirtueMart 3.8.9

I have a redirection problem during user account creation process...

After filling the form at
/component/virtuemart/user?Itemid=0
to create a new account:

- if I click on Save button, the new user account is created, I get loggued in (fine!),  but I am redirected to
/component/virtuemart/user/edit?Itemid=0
where I get stucked there, even after clicking on Save or Cancel
Looping...

- if I click on Cancel button, I stay on the very same page
/component/virtuemart/user?Itemid=0
looping...

In both cases (Submit or Cancel) I'd thought normal to be redirected to the page I came from before user creation form, no?

How could I manage that?
What files should I customize, and how?

Thanks for your help!
Paul

Mister Paul

I have edited the initial post, hoping to be more clear in my question...
;-)

Mister Paul

Well I changed the Cancel button onclick window.location.href
com_virtuemart&view=cart instead of com_virtuemart&view=user
<button class="btn btn-primary" type="submit" onclick="javascript:return myValidator(userForm, true);" ><?php echo $this->button_lbl ?></button>&nbsp;<button class="btn btn-dark" type="reset" onclick="window.location.href='<?php // CHANGED echo JRoute::_('index.php?option=com_virtuemart&view=user', FALSE);
        
echo JRoute::_('index.php?option=com_virtuemart&view=cart'FALSE); ?>
'" ><?php echo vmText::_('COM_VIRTUEMART_CANCEL'); ?></button>


But I can't see how I could modify the redirection after the Submit button click...

Any help, please?
::)

Roderic

Hi,

First of all I would start with updating to a newer / latest version of Virtuemart.

Secondly, did you create menu items for the account etc.?

Mister Paul

#4
Thanks


As our template is no more supported, we will upgrade everything. But, unfortunately, not right now. We look for time and money...
;-)


There is not exactly any menu link...
But there is the Module "Login form" where I see (in admin interface) "Login Redirection Page" and "Logout Redirection Page". For now they are "Default".