- Posts: 608
- Thank you received: 13
Landing page from email link?
- mohairbears
-
Topic Author
- Offline
Less
More
15 years 6 months ago #10429
by mohairbears
Landing page from email link? was created by mohairbears
Hi, The link from the order number lands on a page without the login module (requirement to login)? the only page I have that I do not display the login module is checkout, are the two connected?
thanks
thanks
Please Log in or Create an account to join the conversation.
15 years 6 months ago #10435
by nicolas
Replied by nicolas on topic Re: Landing page from email link?
Hi,
You can add the code:
after the code
in the file components/com_hikashop/controllers/order.php so that the login form is displayed when the user isn't logged in. I think that we'll add that on our end as well as it makes more sense.
You can add the code:
Code:
global $Itemid;
$url = '';
if(!empty($Itemid)){
$url='&Itemid='.$Itemid;
}
$app->redirect(JRoute::_('index.php?option=com_user&view=login'.$url.'&return='.urlencode(base64_encode(hikashop::currentUrl())),false));
Code:
$app=&JFactory::getApplication();
$app->enqueueMessage(JText::_('PLEASE_LOGIN_FIRST'));
Please Log in or Create an account to join the conversation.
- mohairbears
-
Topic Author
- Offline
Less
More
- Posts: 608
- Thank you received: 13
15 years 6 months ago #10440
by mohairbears
Replied by mohairbears on topic Re: Landing page from email link?
Hi, works fine except there are two lines with that code, to make it work it needs to go with the line that ends in [return false;]
thanks again for the great support fantastic product although this php thingy takes some getting used to :laugh: :laugh:
thanks again for the great support fantastic product although this php thingy takes some getting used to :laugh: :laugh:
Please Log in or Create an account to join the conversation.
Time to create page: 0.147 seconds