Wishlist must be logged in message appears twice.

  • Posts: 356
  • Thank you received: 7
  • Hikashop Business
9 years 1 week ago #198572

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.3
-- Browser(s) name and version -- : any
-- Error-message(debug-mod must be tuned on) -- : Message

You must be logged in to use the wishlists.

You must be logged in to use the wishlists.

Hi,

The when not logged in and you press the wishlist button the message about not being logged in appears twice?

Many thanks.

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

  • Posts: 356
  • Thank you received: 7
  • Hikashop Business
9 years 1 week ago #198580

PS I have just edit the language string in the languange override part of joomla. The message still appears twice if the override is off and the settings are default.

I have also tried a default joomla template but still the same issue.

Many thanks.

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

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
9 years 1 week ago #198579

Hi,

In the file "components/com_hikashop/controller/product.php" you can replace

	$app->enqueueMessage(JText::_('LOGIN_REQUIRED_FOR_WISHLISTS'));
	$app->redirect( str_replace('&popup=1','',$_SERVER['HTTP_REFERER']));
By
	if($config->get('redirect_url_after_add_cart','stay_if_cart') == 'ask_user')
		$app->enqueueMessage(JText::_('LOGIN_REQUIRED_FOR_WISHLISTS'));
	$app->redirect( str_replace('&popup=1','',$_SERVER['HTTP_REFERER']));
It should fix the issue with the message repetition.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 356
  • Thank you received: 7
  • Hikashop Business
9 years 1 week ago #198706

Yep, fixed thanks.

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

Time to create page: 0.062 seconds
Powered by Kunena Forum