selecting Itemid for Show the wishlist button

  • Posts: 220
  • Thank you received: 8
9 years 9 months ago #190514

-- HikaShop version -- : 2.3.3
-- Joomla version -- : 2.5.27

Hi,

In the wishlist module one can select an Itemid redirect for the button 'Show the wishlist'.
Alas in my shop this seems to have no effect.
The button always directs to an URL which contains the Itemid of the main shop menu (Categories overview).. I have tried several Itemids but without any effect..

What could be the cause of this error?
Is it possible that some parameter in the configuration is overriding the redirect to the correct Itemid?

Thanks,
Udo

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

  • Posts: 13201
  • Thank you received: 2322
9 years 9 months ago #190570

Hi,

Thanks for the report, there was indeed a missing check in the code.
Please edit the view "product / cart" and add:

	$set = $this->params->get('cart_itemid',false);
	if(!$set)
Before:
	$set = $menusClass->loadAMenuItemId('cart','showcart',$this->params->get('cart_itemid', 0));
	if(!$set)
		$set = $menusClass->loadAMenuItemId('cart','showcart');
	if(!$set)
		$set = $menusClass->loadAMenuItemId('','');
	if($set)
		$cart_itemid='&Itemid='.$set;

The following user(s) said Thank You: Udo

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

  • Posts: 220
  • Thank you received: 8
9 years 9 months ago #190653

Great, it works!
Thanks a lot.

Udo

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

Time to create page: 0.042 seconds
Powered by Kunena Forum