HikaShop Product Like Button

  • Posts: 1181
  • Thank you received: 13
  • Hikashop Business
9 hours 21 minutes 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: 1181
  • Thank you received: 13
  • Hikashop Business
9 hours 8 minutes 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: 85917
  • Thank you received: 14130
  • MODERATOR
5 hours 4 minutes 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.

Time to create page: 0.063 seconds
Powered by Kunena Forum