cannot dismiss message that an item from the wishlist is no longer available.

  • Posts: 96
  • Thank you received: 6
  • Hikashop Business
4 years 4 months ago #314132

-- url of the page with the problem -- : antiqueswan.com/product
-- HikaShop version -- : 4.2.2
-- Joomla version -- : 3.9.14
-- PHP version -- : 7.3

Hi,

If a registered user has added an item to their wishlist that is not longer available, a message appears in the wishlist module stating as such. This is good information, however I haven't found a way to dismiss this message. The item does not appear in the wishlist under their account, and it doesn't appear in the wishlist that is visible to super admin. See screenshots.

How can the message in the sidebar module be dismissed by the user? I didn't find a related setting in the module. That's the only place I thought it would be.

Thank you,

Karen

Attachments:

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

  • Posts: 4510
  • Thank you received: 611
  • MODERATOR
4 years 4 months ago #314138

Hello,

The most simple is to go from Main HikaShop Configuration, Customers dropdwon => Whishlists, then find your user's whishlist.
Click on the Whishlist to edit it, and remove the missing product from the Whishlist.

Hope this will fit your needs.
Regards

Last edit: 4 years 4 months ago by Philip.

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

  • Posts: 96
  • Thank you received: 6
  • Hikashop Business
4 years 4 months ago #314152

That's the first thing I tried, please see the screenshot from the original post. It's not in the user's wishlist so I can't remove it.

Plus, even I could remove it, there's no way to know whether a user is seeing that message. I saw it this time because it's on my test registered user.

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

  • Posts: 12953
  • Thank you received: 1778
4 years 4 months ago #314180

Hello,

Can you show us some screenshots of how you configured your "Silver Italian champagne" product so that we can reproduce it on our end ? Thank you.

Kind regards,
Mohamed.

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

  • Posts: 96
  • Thank you received: 6
  • Hikashop Business
4 years 4 months ago #314189

sure, attached is a screenshot.

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
4 years 4 months ago #314206

Hello,

I'm unable to reproduce that issue, can you tell me if your product is :
- out of stock
- not available based on the date
- not accessible cause of access level

So that we can correctly reproduce and debug it on our end ? Thank you.

Kind regards,
Mohamed.

Last edit: 4 years 4 months ago by Mohamed Thelji.

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

  • Posts: 96
  • Thank you received: 6
  • Hikashop Business
3 years 8 months ago #323276

Is it too late to reopen this ticket?

I just realized that I never replied or resolved this issue, and I noticed it again.

There are items that have been moved into a sold or archived category that show as unavailable to a user if they once had them in their wishlist.

Attached are some screen shots to explain further. The items do not appear in the wishlist on the back end. Nor do they display in the user's wishlist on the front end, however they do show as unavailable in the HikaShop Wishlist Module (assigned to the sidebar of the product pages).

A screenshot of the wishlist module options included as well.

Attachments:

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

  • Posts: 81515
  • Thank you received: 13069
  • MODERATOR
3 years 7 months ago #323575

Hi,

Ok, I found the issue. Indeed it only happen if the product is unpublished and only for the wishlist module, not the wishlist details page (where we were looking at).
So to avoid that, you want to change the code:

if(empty($product->product_published)) {
				$notUsable[$cart_product_id] = array('id' => $cart_product_id, 'qty' => 0);
				$cart->messages[] = array('msg' => JText::sprintf('PRODUCT_NOT_AVAILABLE', $errorMessagesProductNames[$cart_product_id]), 'product_id' => $product->product_id, 'type' => 'notice');
				continue;
			}
to:
if(empty($product->product_published)) {
				$notUsable[$cart_product_id] = array('id' => $cart_product_id, 'qty' => 0);
				continue;
			}
in the file administrator/components/com_hikashop/classes/cart.php
I think it makes sense to just not have that message if the product has been unpublished.

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

  • Posts: 96
  • Thank you received: 6
  • Hikashop Business
3 years 6 months ago #324385

Thank you Nicolas.

I can make that change to the file but I am wondering what will happen to those changes when there is an update to Hikashop. Will those changes be lost on update?

Cheers,

Karen

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

  • Posts: 81515
  • Thank you received: 13069
  • MODERATOR
3 years 6 months ago #324447

Hi,

We will include the change in the next version of HikaShop if you can confirm that the modification fixes the issue on your website.

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

  • Posts: 96
  • Thank you received: 6
  • Hikashop Business
3 years 6 months ago #324454

Thank you Nicolas.

Yes, the code change did resolve the issue.

Cheers,

Karen

The following user(s) said Thank You: Philip

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

Time to create page: 0.076 seconds
Powered by Kunena Forum