- Posts: 220
- Thank you received: 8
Assigning menu item id to wishlist
12 years 9 months ago - 12 years 9 months ago #136839
by Udo
Assigning menu item id to wishlist was created by Udo
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
-- 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: 12 years 9 months ago by Udo. Reason: WRONG CATEGORY
Please Log in or Create an account to join the conversation.
12 years 9 months ago #136854
by Xavier
Replied by Xavier on topic Assigning menu item id to wishlist
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 ?
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.
12 years 9 months ago #136880
by Udo
Replied by Udo on topic Assigning menu item id to wishlist
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
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.
12 years 9 months ago #137176
by Udo
Replied by Udo on topic Assigning menu item id to wishlist
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
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.
12 years 9 months ago #137200
by Xavier
Replied by Xavier on topic Assigning menu item id to wishlist
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()":
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()":
Code:
global $Itemid;
Please Log in or Create an account to join the conversation.
12 years 9 months ago #137238
by Udo
Replied by Udo on topic Assigning menu item id to wishlist
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
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.
12 years 9 months ago #137319
by Xavier
Replied by Xavier on topic Assigning menu item id to wishlist
Hi,
Yes after the "{".
Yes after the "{".
Please Log in or Create an account to join the conversation.
12 years 9 months ago #137333
by Udo
Replied by Udo on topic Assigning menu item id to wishlist
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
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.
12 years 8 months ago - 12 years 8 months ago #138300
by Xavier
Replied by Xavier on topic Assigning menu item id to wishlist
Hi,
Thanks to give me the url of your website in order to make some tests.
You can send it via PM.
Thanks to give me the url of your website in order to make some tests.
You can send it via PM.
Last edit: 12 years 8 months ago by Xavier.
Please Log in or Create an account to join the conversation.
12 years 8 months ago #138407
by Udo
Replied by Udo on topic Assigning menu item id to wishlist
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
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.
12 years 8 months ago #138420
by Xavier
Replied by Xavier on topic Assigning menu item id to wishlist
Ok so we will see that later 
Thanks and best wishes too !
Thanks and best wishes too !
Please Log in or Create an account to join the conversation.
Time to create page: 0.244 seconds