[Skip to main content](#vessel-content)

#   Problem with Wishlist and Compare mode

##

- **[abbakhan](/forum/user/11485-abbakhan "View abbakhan's Profile")**
- [![abbakhan's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/11485-abbakhan "View abbakhan's Profile") Topic Author
- [ Offline](/forum/user/11485-abbakhan)

Less More

- Posts: 21
- Thank you received: 0
-
-

13 years 11 months ago -  13 years 11 months ago [\#77343](#77343) by [abbakhan](/forum/user/11485-abbakhan "View abbakhan's Profile")  *[Problem with Wishlist and Compare mode](/forum/2-general-talk-about-hikashop/75920-problem-with-wishlist-and-compare-mode#77343 "Both of my Wishlist and Compare mode is on. Wishlist button shows normally but when I click it I get the following error: &quot;An error occurred&quot;  The &quot;Add to compare list&quot; button does not appear at all!  You can see here:   googledeal.com/fi/categories/14-pariisi-ranska.html  Settings can ve viewed from the file I have attached.")* was created by *[abbakhan](/forum/user/11485-abbakhan "View abbakhan's Profile")*

Both of my Wishlist and Compare mode is on. Wishlist button shows normally but when I click it I get the following error:
"An error occurred"

The "Add to compare list" button does not appear at all!

You can see here:
[ googledeal.com/fi/categories/14-pariisi-ranska.html](http://googledeal.com/fi/categories/14-pariisi-ranska.html)

Settings can ve viewed from the file I have attached.

- [ ![Screenshot&#95;from&#95;2012-11-18&#95;213540.png](/forum/attachment/7033) ](/forum/attachment/7033 "...-18&#95;213540.png") [ ](/forum/attachment/7033?download=1 "...-18&#95;213540.png")

Last edit: 13 years 11 months ago by [abbakhan](/forum/user/11485-abbakhan "View abbakhan's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc1OTIwLXByb2JsZW0td2l0aC13aXNobGlzdC1hbmQtY29tcGFyZS1tb2RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 11 months ago [\#77367](#77367) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Problem with Wishlist and Compare mode](/forum/2-general-talk-about-hikashop/75920-problem-with-wishlist-and-compare-mode#77367 "Both of my Wishlist and Compare mode is on. Wishlist button shows normally but when I click it I get the following error: &quot;An error occurred&quot;  The &quot;Add to compare list&quot; button does not appear at all!  You can see here:   googledeal.com/fi/categories/14-pariisi-ranska.html  Settings can ve viewed from the file I have attached.")*

Hi,

Default options are in case of the menu/module does not specify the value (when it uses "inherits").
For the "compare list", please check your menus/modules options.

About the wishlist, I don't see the button so I can't test it.
With the Joomla debug mode activated, you might have more information about the error.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc1OTIwLXByb2JsZW0td2l0aC13aXNobGlzdC1hbmQtY29tcGFyZS1tb2RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[abbakhan](/forum/user/11485-abbakhan "View abbakhan's Profile")**
- [![abbakhan's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/11485-abbakhan "View abbakhan's Profile") Topic Author
- [ Offline](/forum/user/11485-abbakhan)

Less More

- Posts: 21
- Thank you received: 0
-
-

13 years 11 months ago -  13 years 11 months ago [\#77478](#77478) by [abbakhan](/forum/user/11485-abbakhan "View abbakhan's Profile")  Replied by *[abbakhan](/forum/user/11485-abbakhan "View abbakhan's Profile")* on topic *[Problem with Wishlist and Compare mode](/forum/2-general-talk-about-hikashop/75920-problem-with-wishlist-and-compare-mode#77478 "Both of my Wishlist and Compare mode is on. Wishlist button shows normally but when I click it I get the following error: &quot;An error occurred&quot;  The &quot;Add to compare list&quot; button does not appear at all!  You can see here:   googledeal.com/fi/categories/14-pariisi-ranska.html  Settings can ve viewed from the file I have attached.")*

Thank you!

For "Compare list" I do not find any settings other than following 2 settings in "System-&gt;Display":
**Activate compare mode** (My selected value is "link")
**Compare limitation** (My value is 10)

I have checked:
1. System-&gt;Plugins
2. Display-&gt;Content menus
3. Display-&gt;Content modules

AND also other setting pages and tabs, but could not find any setting option(s) for "Compare list". The fact is the Compare button was being viewed for a while after I did make the above mentioned 2 settings (in bold), but suddenly it just disappeared.

About Wishlist, by activating the debug mode of Joomla!, I could not detect any new errors, a white window appears with the error: "An error occurred", nothing new. ![:(](/media/kunena/emoticons/22.png ":(")
Moreover, when a product contains Option(s), "Choose options" button is visible correctly but the "Add to wishlist" button disappears.
Sorry, I did deactivate the Wishlist as it was producing error. I have reactivated the module so you can try it.

Last edit: 13 years 11 months ago by [abbakhan](/forum/user/11485-abbakhan "View abbakhan's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc1OTIwLXByb2JsZW0td2l0aC13aXNobGlzdC1hbmQtY29tcGFyZS1tb2RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 11 months ago [\#77597](#77597) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Problem with Wishlist and Compare mode](/forum/2-general-talk-about-hikashop/75920-problem-with-wishlist-and-compare-mode#77597 "Both of my Wishlist and Compare mode is on. Wishlist button shows normally but when I click it I get the following error: &quot;An error occurred&quot;  The &quot;Add to compare list&quot; button does not appear at all!  You can see here:   googledeal.com/fi/categories/14-pariisi-ranska.html  Settings can ve viewed from the file I have attached.")*

Hi,

As you can see with this link : [ googledeal.com/fi/?option=com\_hikashop&amp;c...&amp;task=listing&amp;cid=14](http://googledeal.com/fi/?option=com_hikashop&ctrl=product&task=listing&cid=14)
The compare mode and the add to whishlist are enable in your website.
It use a generic product listing without using menu options.

After that you can check the page : [ googledeal.com/fi/products/14-pariisi-ranska.html](http://googledeal.com/fi/products/14-pariisi-ranska.html)
You can see in the page a div with the id "hikashop_module_167".
It means that if you edit the HikaShop module with id 167, you would find the options for this listing (display add to cart, display wishlist, etc).
In the page you would find a div (parent to the previous) with the id "hikashop_category_information_menu_738".
As previous but this time with an HikaShop menu, you would find the options for this menu.

Your page is a compilation of default option, with menu options and module options.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc1OTIwLXByb2JsZW0td2l0aC13aXNobGlzdC1hbmQtY29tcGFyZS1tb2RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[neilw](/forum/user/12841-neilw "View neilw's Profile")**
- [![neilw's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12841-neilw "View neilw's Profile")
- [ Offline](/forum/user/12841-neilw)

Less More

- Posts: 59
- Thank you received: 0
-
-

13 years 7 months ago [\#93741](#93741) by [neilw](/forum/user/12841-neilw "View neilw's Profile")  Replied by *[neilw](/forum/user/12841-neilw "View neilw's Profile")* on topic *[Problem with Wishlist and Compare mode](/forum/2-general-talk-about-hikashop/75920-problem-with-wishlist-and-compare-mode#93741 "Both of my Wishlist and Compare mode is on. Wishlist button shows normally but when I click it I get the following error: &quot;An error occurred&quot;  The &quot;Add to compare list&quot; button does not appear at all!  You can see here:   googledeal.com/fi/categories/14-pariisi-ranska.html  Settings can ve viewed from the file I have attached.")*

I'm feeling like I'm blind. I am trying to work on turning on the Compare feature. I just created a new test menu item and page (hidden for now during testing) using the hikashop category option/layout. When you go to the product listings page from that new category view, you get the compare checkboxes and everything works fine (option was turned on in the Config/Features tab).

However, we had previously created several K2 Content pages that include K2 articles at the top of the page, then added a Hikashop content module (product in div layout) to the lower portion of that page. It works and looks fine for virtually everything. However, it does not have the compare feature/checkboxes on this or any of the other pages like that.

I've read the thread above, but I am still not seeing any option to turn on Compare in the various content modules for the hikashop content (v2.1). I have looked in the menu options (those pages are set in the menu as a K2 Content page), the hikashop content module assigned to the page, and nowhere is there an option to turn on or off the Compare feature. I even checked the menu options for the new test menu item for the Hikashop category page, and there is no option there to turn off and on the Compare feature.

Is the display of those products controlled by the specific content module, plugin and/or general configuration? If so, I cannot see anything to turn on or off Compare. Is there a master content configuration for all those hikashop content modules we created for those pages that is somehow changing what is showing regarding Compare?

Help!!! I am sure it is obvious, but I cannot find it. Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc1OTIwLXByb2JsZW0td2l0aC13aXNobGlzdC1hbmQtY29tcGFyZS1tb2RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14280
-
-

13 years 7 months ago [\#93933](#93933) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Problem with Wishlist and Compare mode](/forum/2-general-talk-about-hikashop/75920-problem-with-wishlist-and-compare-mode#93933 "Both of my Wishlist and Compare mode is on. Wishlist button shows normally but when I click it I get the following error: &quot;An error occurred&quot;  The &quot;Add to compare list&quot; button does not appear at all!  You can see here:   googledeal.com/fi/categories/14-pariisi-ranska.html  Settings can ve viewed from the file I have attached.")*

Hi,

That's normal that you don't see the compare buttons on your product listing modules.
The comparison feature is only activated on HikaShop listing menu items.
It's not the case on your end since the menus are K2 menus.
You would have to edit the file "listing" of the view "product" for your frontend template via the menu Display-&gt;Views and change the code:
JRequest::getVar('hikashop_front_end_main',0) &amp;&amp; JRequest::getVar('task')=='listing' &amp;&amp; $this-&gt;params-&gt;get('show_compare')
to:
true
and do the same change in your item box layout view file (probably "listing_img_title" of the "product" view) so that the comparison would be activated everywhere. However, note that the comparison system won't work properly if you have more than one products listing on the page (which is why it is restricted to listing menu items by default).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc1OTIwLXByb2JsZW0td2l0aC13aXNobGlzdC1hbmQtY29tcGFyZS1tb2RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[neilw](/forum/user/12841-neilw "View neilw's Profile")**
- [![neilw's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12841-neilw "View neilw's Profile")
- [ Offline](/forum/user/12841-neilw)

Less More

- Posts: 59
- Thank you received: 0
-
-

13 years 7 months ago [\#93938](#93938) by [neilw](/forum/user/12841-neilw "View neilw's Profile")  Replied by *[neilw](/forum/user/12841-neilw "View neilw's Profile")* on topic *[Problem with Wishlist and Compare mode](/forum/2-general-talk-about-hikashop/75920-problem-with-wishlist-and-compare-mode#93938 "Both of my Wishlist and Compare mode is on. Wishlist button shows normally but when I click it I get the following error: &quot;An error occurred&quot;  The &quot;Add to compare list&quot; button does not appear at all!  You can see here:   googledeal.com/fi/categories/14-pariisi-ranska.html  Settings can ve viewed from the file I have attached.")*

When you say it won't work correctly " if you have more than one products listing on the page", do you mean more than one category? Each of our menus only show a single selected product category. Would that work?

Is the True/False flag in that line of code the 0 after front_end_main? If so, I changed that to 1 from 0 and it did not activate COmpare on those pages.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc1OTIwLXByb2JsZW0td2l0aC13aXNobGlzdC1hbmQtY29tcGFyZS1tb2RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14280
-
-

13 years 7 months ago [\#94004](#94004) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Problem with Wishlist and Compare mode](/forum/2-general-talk-about-hikashop/75920-problem-with-wishlist-and-compare-mode#94004 "Both of my Wishlist and Compare mode is on. Wishlist button shows normally but when I click it I get the following error: &quot;An error occurred&quot;  The &quot;Add to compare list&quot; button does not appear at all!  You can see here:   googledeal.com/fi/categories/14-pariisi-ranska.html  Settings can ve viewed from the file I have attached.")*

That should work yes.

Please reread my instructions carefully. I said that you need to replace the whole code:
JRequest::getVar('hikashop_front_end_main',0) &amp;&amp; JRequest::getVar('task')=='listing' &amp;&amp; $this-&gt;params-&gt;get('show_compare')

to:
true

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc1OTIwLXByb2JsZW0td2l0aC13aXNobGlzdC1hbmQtY29tcGFyZS1tb2RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[neilw](/forum/user/12841-neilw "View neilw's Profile")**
- [![neilw's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12841-neilw "View neilw's Profile")
- [ Offline](/forum/user/12841-neilw)

Less More

- Posts: 59
- Thank you received: 0
-
-

13 years 7 months ago [\#94020](#94020) by [neilw](/forum/user/12841-neilw "View neilw's Profile")  Replied by *[neilw](/forum/user/12841-neilw "View neilw's Profile")* on topic *[Problem with Wishlist and Compare mode](/forum/2-general-talk-about-hikashop/75920-problem-with-wishlist-and-compare-mode#94020 "Both of my Wishlist and Compare mode is on. Wishlist button shows normally but when I click it I get the following error: &quot;An error occurred&quot;  The &quot;Add to compare list&quot; button does not appear at all!  You can see here:   googledeal.com/fi/categories/14-pariisi-ranska.html  Settings can ve viewed from the file I have attached.")*

Sorry. Didn't understand.

Did that and it adds the Compare checkboxes to the item boxes, but it does not add the Compare button when you select items. Do I need to edit another view?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc1OTIwLXByb2JsZW0td2l0aC13aXNobGlzdC1hbmQtY29tcGFyZS1tb2RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14280
-
-

13 years 7 months ago [\#94022](#94022) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Problem with Wishlist and Compare mode](/forum/2-general-talk-about-hikashop/75920-problem-with-wishlist-and-compare-mode#94022 "Both of my Wishlist and Compare mode is on. Wishlist button shows normally but when I click it I get the following error: &quot;An error occurred&quot;  The &quot;Add to compare list&quot; button does not appear at all!  You can see here:   googledeal.com/fi/categories/14-pariisi-ranska.html  Settings can ve viewed from the file I have attached.")*

You must have forgot the second same piece of code near the end of the "listing" view file which is where the compare button is added.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc1OTIwLXByb2JsZW0td2l0aC13aXNobGlzdC1hbmQtY29tcGFyZS1tb2RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[neilw](/forum/user/12841-neilw "View neilw's Profile")**
- [![neilw's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12841-neilw "View neilw's Profile")
- [ Offline](/forum/user/12841-neilw)

Less More

- Posts: 59
- Thank you received: 0
-
-

13 years 7 months ago [\#94037](#94037) by [neilw](/forum/user/12841-neilw "View neilw's Profile")  Replied by *[neilw](/forum/user/12841-neilw "View neilw's Profile")* on topic *[Problem with Wishlist and Compare mode](/forum/2-general-talk-about-hikashop/75920-problem-with-wishlist-and-compare-mode#94037 "Both of my Wishlist and Compare mode is on. Wishlist button shows normally but when I click it I get the following error: &quot;An error occurred&quot;  The &quot;Add to compare list&quot; button does not appear at all!  You can see here:   googledeal.com/fi/categories/14-pariisi-ranska.html  Settings can ve viewed from the file I have attached.")*

Got it! Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc1OTIwLXByb2JsZW0td2l0aC13aXNobGlzdC1hbmQtY29tcGFyZS1tb2RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.075 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
