Post by scottyboyyy » Tue Jan 31, 2023 4:56 am

Using Version 3.0.3.8, have a multistore and just tested adding products to wishlist and then changed to another store and back and the list had cleared. Is this a bug? Any one know a way to fix?

Thanks! :D

Active Member

Posts

Joined
Fri Apr 07, 2017 2:36 am

Post by purpletreesoft » Tue Jan 31, 2023 8:37 am

Yes, this is a bug in Opencart 3.0.3.8. Currently, the wishlist is store-specific and does not persist across stores. This means that when you switch to a different store, the wishlist items are not saved or transferred.

Unfortunately, there is no built-in solution to fix this issue. However, you can modify the code to make the wishlist persist across stores. Here is one solution:
  • Create a custom module in your Opencart store.
  • In the module, you will need to add a new database table to store the wishlist data.
  • Modify the wishlist functionality to save the data in the new database table and retrieve it when the user switches between stores.
  • Add a new column to the database table to store the store ID, so that the wishlist items can be retrieved correctly for each store.
This solution will require some technical expertise and may not be suitable for all users. If you are not familiar with Opencart's code, it may be best to hire a developer/agency or contact us to help with the implementation.

Purpletree Software LLP
New features launched for Multivendor Marketplace Extension


User avatar
New member

Posts

Joined
Thu Jun 22, 2017 10:17 pm


Post by scottyboyyy » Tue Jan 31, 2023 2:57 pm

That is brilliant, thank you very much for such a detailed response and a solution to my issue!

purpletreesoft wrote:
Tue Jan 31, 2023 8:37 am
Yes, this is a bug in Opencart 3.0.3.8. Currently, the wishlist is store-specific and does not persist across stores. This means that when you switch to a different store, the wishlist items are not saved or transferred.

Unfortunately, there is no built-in solution to fix this issue. However, you can modify the code to make the wishlist persist across stores. Here is one solution:
  • Create a custom module in your Opencart store.
  • In the module, you will need to add a new database table to store the wishlist data.
  • Modify the wishlist functionality to save the data in the new database table and retrieve it when the user switches between stores.
  • Add a new column to the database table to store the store ID, so that the wishlist items can be retrieved correctly for each store.
This solution will require some technical expertise and may not be suitable for all users. If you are not familiar with Opencart's code, it may be best to hire a developer/agency or contact us to help with the implementation.

Active Member

Posts

Joined
Fri Apr 07, 2017 2:36 am
Who is online

Users browsing this forum: No registered users and 103 guests