Assigning menu item id to wishlist

  • Posts: 220
  • Thank you received: 8
10 years 11 months ago #136839

SORRY, THIS SHOULD HAVE BEEN POSTED IN THE WISHLIST CATEGORY

-- HikaShop version - 2.2.3 Business edition
-- Joomla version -- 1.5.26
-- PHP version -- 5.3.8
-- Browser(s) name and version -- Firefox 25.0.1

Hi,

I'm using the wishlist module. When clicking on the button to show the wishlist (url .../cart/showcart/cart_id-61/cart_type-wishlist.html) I get a view without any Joomla modules. The reason may be that there is no menu item associated with the wishlist.

Alas the same problem exists in the menu User Control Panel. When clicking on Addresses or Orders you stay on the same page, but after clicking on Show the wishlists you get a new page without any associated Joomla modules (url ..../cart/showcarts/cart_type-wishlist.html)

Is there a way to assign a menu item id to the wishlist link? That may result in wishlist pages showing all modules assigned to this menu item.

Thanks,
Udo

Last edit: 10 years 11 months ago by Udo. Reason: WRONG CATEGORY

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

  • Posts: 13201
  • Thank you received: 2322
10 years 11 months ago #136854

Hi,

You should have a menu item id when going to the wishlists.
Coming from user control panel keep the same itemid than the user control panel.
The menu have a link, etc.

I am not able to reproduce the bug on my end. Is that happening with the cart module, or cart display via the user control panel ?
Can you try to disable the SEF option in the Joomla parameters and see if an itemid is displayed in the url ?

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

  • Posts: 220
  • Thank you received: 8
10 years 11 months ago #136880

Hi,

I have disabled the Joomla SEF and indeed there is a itemid in the url.
Via the User Control Panel Menu: index.php?option=com_hikashop&ctrl=cart&task=showcarts&cart_type=wishlist&Itemid=222
(222 being the id of this menu)
Via the wishlist module: index.php?option=com_hikashop&ctrl=cart&task=showcart&cart_id=61&Itemid=195&cart_type=wishlist
(195 being the id of the product listing menu).
But no modules, The itemid is overruled so it seems.

The other links in the User Control Panel menu also contain Itemid=222 (for instance: index.php?option=com_hikashop&ctrl=order&Itemid=222) and all modules assigned to 222 show up.

Interesting: the link Account information in de User Control Panel menu works fine with SEF disabled. But with SEF on the itemid=222 has no effect anymore and no modules are shown.

Perhaps a Joomla issue?

regards,
Udo

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

  • Posts: 220
  • Thank you received: 8
10 years 11 months ago #137176

Hi,

Although it's clear now that an menu itemid is assigned to the url of the wishlist the problem remains: the itemid doesnot have any effect on the wishlist links in both the User Control Panel Menu and the wishlist module. It doesnot work with SEF active and not with SEF disabled.

Do you have any suggestions about the reason for this and the way to solve the problem?
As it is now, I can't really use the wishlist.

A related (?) issue: the menu itemid in the link Account information in de User Control Panel Menu works fine only if SEF is disabled.

Udo

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

  • Posts: 13201
  • Thank you received: 2322
10 years 11 months ago #137200

Hi,

I think that a thing was missing, thanks to ty to add the following code at the top of the file "components/com_hikashop/views/cart/view.html.php", function "showcarts()" and function "showcart()":

global $Itemid;

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

  • Posts: 220
  • Thank you received: 8
10 years 11 months ago #137238

Hi,

Where exactly in the file do you want me to add the code?

In the first line of "function showcarts()" and "function showcart()" (behind the { )?

Udo

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

  • Posts: 13201
  • Thank you received: 2322
10 years 11 months ago #137319

Hi,

Yes after the "{".

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

  • Posts: 220
  • Thank you received: 8
10 years 11 months ago #137333

Hi,

I've changed "function showcarts(){ $app = JFactory::getApplication();"
into: "function showcarts(){ global $Itemid; $app = JFactory::getApplication();"

And " function showcart(){$app = JFactory::getApplication();"
into: function showcart(){global $Itemid; $app = JFactory::getApplication();"

But it makes no difference.

Udo

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

  • Posts: 13201
  • Thank you received: 2322
10 years 10 months ago #138300

Hi,

Thanks to give me the url of your website in order to make some tests.
You can send it via PM.

Last edit: 10 years 10 months ago by Xavier.

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

  • Posts: 220
  • Thank you received: 8
10 years 10 months ago #138407

Hi Xavier,
Best wishes for 2014!

Alas, I can't give an url because I'm testing on a local copy on my computer.

Next week I'll install Hikashop on the live site.
The problem probably recurs and I will post again.

Thanks.
Happy Xmas!

Udo

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

  • Posts: 13201
  • Thank you received: 2322
10 years 10 months ago #138420

Ok so we will see that later ;)

Thanks and best wishes too !

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

Time to create page: 0.082 seconds
Powered by Kunena Forum