HikaShop Product Like Button

  • Posts: 1182
  • Thank you received: 13
  • Hikashop Business
1 day 12 hours ago #372727

Hello,

I installed and configured the “HikaShop Product Like Button” plugin version 1.0.1.

The like button works and I created a HikaShop products listing menu item with:

Only liked products: Yes

The liked products are displayed correctly only in the same browser.

Looking at the plugin code, it appears that liked product IDs are stored only in the “liked_products” browser cookie:

$_COOKIE

and:

document.cookie = name + cookieValue.join('|') + expires + '; path=/';

Could you please confirm the following?

1. Are liked products intentionally stored only in the browser cookie?
2. Does this mean that likes are lost when the customer changes browser/device, uses private browsing, or clears cookies?
3. Is there an option to associate liked products with the logged-in Joomla/HikaShop user account?
4. Is there an official solution or extension for persistent favorites synchronized across devices?
5. Could the plugin be extended so that logged-in users save likes in the database, while guests continue using cookies?

For an e-commerce customer account, we need the favorite products to remain available after login from another device.

Thank you.

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

  • Posts: 1182
  • Thank you received: 13
  • Hikashop Business
1 day 12 hours ago #372728

Hello,

We need to implement a persistent Favorites feature for registered B2B customers.

The business requirement is the following:

- Logged-in B2B customers must be able to mark products as Favorites.
- Their favorite products must be associated with their Joomla/HikaShop account.
- Favorites must remain available on future visits.
- The same favorites must be available when the customer logs in from another browser or device.
- Customers should have a dedicated “Favorites” page from which they can quickly find and reorder frequently purchased products.

We tested the “HikaShop Product Like Button” plugin version 1.0.1.

However, from its code, it appears that the liked product IDs are stored only in the browser cookie:

$_COOKIE

This means that the list is browser-specific and is lost when cookies are cleared or when the customer changes browser/device.

Could you please clarify:

1. Is there an official HikaShop Wishlist/Favorites feature that stores products per registered user in the database?
2. Is this functionality included in a specific HikaShop edition?
3. Can it be restricted to registered/B2B users?
4. Can the customer add products from the Favorites page directly to the cart?
5. Is there an official plugin or recommended implementation for persistent cross-device favorites?

Thank you.

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

  • Posts: 85945
  • Thank you received: 14133
  • MODERATOR
1 day 8 hours ago #372730

Hi,

1. Yes, the wishlist feature which is included in HikaShop by default does this. Check the "enable wishlist" setting and the following settings of the HikaShop configuration:
www.hikashop.com/support/documentation/5...g.html#features_main

2. It is included in both HikaShop Essential and HikaShop Business.

3. The wishlist feature is restricted to registered users automatically.

4. Yes. The wishlist page has a button for this.

5. See point 1.

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

  • Posts: 1182
  • Thank you received: 13
  • Hikashop Business
13 hours 27 minutes ago #372759

Thank you for the reply Nicolas.
We made it with the wishlist.
It is useless for us to use this extension.
Is it possible to be credited for this plugin since the description is a little bit misleading

"That plugin allows your customers to "like" your products on your shop.
Plus, it will offer you an new option for your HikaShop content modules and menu items, in order for customers to be able to see a list of their "liked" products."

It is only for the current session.

Thank you

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

  • Posts: 85945
  • Thank you received: 14133
  • MODERATOR
9 hours 12 minutes ago #372766

Hi,

It is not only for the current session. Writing this would be misleading.
The liked products information is stored in the cookies of the browser, and it will survive changing user sessions.
So I don't think it is misleading.

But yes, you sure can get a refund for the plugin if you purchased it less than 30 days ago by requesting a refund via our contact form as per www.hikashop.com/money-back-policy.html

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

Time to create page: 0.067 seconds
Powered by Kunena Forum