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.