Landing page from email link?

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
13 years 8 months ago #10429

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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 8 months ago #10435

Hi,

You can add the 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
$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.

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
13 years 8 months ago #10440

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.058 seconds
Powered by Kunena Forum