Skip to main content

Landing page from email link?

More
15 years 6 months ago #10429 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

Please Log in or Create an account to join the conversation.

More
15 years 6 months ago #10435 by nicolas
Hi,

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));
after the code
Code:
$app=&JFactory::getApplication(); $app->enqueueMessage(JText::_('PLEASE_LOGIN_FIRST'));
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.

Please Log in or Create an account to join the conversation.

More
15 years 6 months ago #10440 by mohairbears
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:

Please Log in or Create an account to join the conversation.

Time to create page: 0.147 seconds
Powered by Kunena Forum