- Posts: 55
- Thank you received: 0
Registration, Email confirmation and system msg.
- skatercorpse
-
Topic Author
- Offline
Unfortunately I still have some problems.
First thing I would like to know is if the following is a general problem or a problem due to my joomla or hikashop settings.
In the e-mail confirmation when a user do the registration, the e-mail text says that an Admin must activate the account in order to proceed. But that is not true. It is enough to click in the link below and the account is automatically activated. I just solved it editing the e-mail text in the language file (override.ini).
[strike]Then the real problem is that when a system message is displayed, it is not possible to access the Registration page or the Login page. Why? Is it a problem of permission access? The pages are created by the module, and not by me, so I cannot set the permission access for them...
Here you can see the account created notification: www.angolocreativo.ch/registrati/checkout/activate_page/lang-it
And here you have the account activation notification after clicking the link in the e-mail: www.angolocreativo.ch/index.php?option=c...hIjt9&page=user&id=6 [/strike]
Thank you!
EDIT
Now is working... :blink:
And anyway I noticed I cannot replicate the situation with the links I provided...
So there is no real problem...just a question about if it is right in the registration email to have a text that says that an administrator has to activate the account...
Please Log in or Create an account to join the conversation.
ACCOUNT_MUST_BE_ACTIVATED="Your account must be activated by clicking on the link below and you will be able to continue your order."
2. When the system is configured to ask for activation, once you entered your information and clicked on register on the checkout page, it just displays a message telling the user to click on the link in the email. Then, when the user click on the email, he will be redirected to the checkout in order to continue his order. I tried it on your website and it works OK.
Please Log in or Create an account to join the conversation.
- skatercorpse
-
Topic Author
- Offline
- Posts: 55
- Thank you received: 0
2. Yes, the test you did works.
But what if you want to register before you buy? Try it out on my website.
You do the registration.
You receive the email for activating the account.
You click on the activation link.
You are redirected on the website that says that the account is now activated and you can do the login with the username and password you chose during the registration.
Now click on the Login menu item at the top of the website and you will get the error.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- skatercorpse
-
Topic Author
- Offline
- Posts: 55
- Thank you received: 0
I tried to google it but didn't find a solution.
Do you have any idea how is possible to change the loading order of components and modules? Because I have no clue how to do that
Please Log in or Create an account to join the conversation.
return true;
from the function activate in the file components/com_hikashop/controllers/checkout.php. But that modification will be removed each time you update hikashop so you will have to reapply it.
Please Log in or Create an account to join the conversation.
- skatercorpse
-
Topic Author
- Offline
- Posts: 55
- Thank you received: 0
The fix you suggested me doesn't work unfortunately..
If I cannot find anyone who can help me with this loading order of components and modules problem I will solve it writing something in the system message that appears after clicking on the activation link.
Thank you anyway!
Please Log in or Create an account to join the conversation.
Changing the code there should do something once the activation is validated.
Could you try to change that line by this one maybe ?
$app->redirect( JRoute::_('index.php?option=com_user&view=login',false) );
Please Log in or Create an account to join the conversation.
- skatercorpse
-
Topic Author
- Offline
- Posts: 55
- Thank you received: 0
Is it possible that the problem is that I'm using the Joomla option "Rewrite URL SEF"?
Please Log in or Create an account to join the conversation.
Please try with that code then:
$app->redirect( JRoute::_('index.php?option=com_users&view=login',false) );
Please Log in or Create an account to join the conversation.
- skatercorpse
-
Topic Author
- Offline
- Posts: 55
- Thank you received: 0
The activation link try to redirect me to the login page (no system message of a successfull activation of the account) and it gives me a 404 error page due to the fact that I'm already logged in so the login page doesn't exist for these users...
Please Log in or Create an account to join the conversation.
Try with that then:
global $Itemid;
$url = '';
if(!empty($Itemid)){
$url='&Itemid='.$Itemid;
}
$app->redirect( JRoute::_('index.php?option=com_com_hikashop&ctrl=user'.$url,false) );
Please Log in or Create an account to join the conversation.
- skatercorpse
-
Topic Author
- Offline
- Posts: 55
- Thank you received: 0
Are we still talking about changing only the line return true; or the entire piece of code?
In the last posts I was changing that line with the code you provided me.
With your last post I tried to change the entire piece of code that is similar...the activation link redirect me to a page with the system message of the successfull activation of the account. Then up in the menu there are still the item Registration and Login that if I try to click obvously they give me the 404 error...
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- skatercorpse
-
Topic Author
- Offline
- Posts: 55
- Thank you received: 0
The activation link in the email redirect me to a 404 error page ( www.angolocreativo.ch/component/com_hikashop/?ctrl=user )
Please Log in or Create an account to join the conversation.
$app->redirect( JURI::base().'index.php?option=com_hikashop&ctrl=user');
Please Log in or Create an account to join the conversation.
- skatercorpse
-
Topic Author
- Offline
- Posts: 55
- Thank you received: 0
Please Log in or Create an account to join the conversation.
$app->redirect( JURI::base().'index.php?option=com_hikashop&ctrl=user');
Please Log in or Create an account to join the conversation.
- skatercorpse
-
Topic Author
- Offline
- Posts: 55
- Thank you received: 0
Thank you!!
Will I have to do this fix everytime I update hikashop?
Please Log in or Create an account to join the conversation.
It's just that you don't want the same behavior than the default one. There is no override possibility for that for now so yes, you will have to apply it for each update unless we find a good reason to include it
Please Log in or Create an account to join the conversation.