
I was trying to add image for a product such that it is shown for users when they hover on item number on any other form.
I've added the image to the released product as in the following screenshot:
Now, when I go to any other form (such that transactions form) and hover on the item number the image is not shown. If I opened also the item card it does not show the image.
Anyone have an idea how to solve this?
Thanks in advance,
When something doesn't behave as expected, use can look into code to find out what's going on. You can either just read the code, or follow the actual execution in the debugger.
Your second screenshot shows EcoResProductInformationDialog form, which takes the image from productImageThumbnail() method of EcoResProductInformationController class. You'll see that the image can be found by two different ways:
EcoResProductImage::releasedProductImage(this, EcoResProductImageSize::Thumbnail); or EcoResProductImage::releasedProductVariantImage(this, EcoResProductImageSize::Thumbnail);
Your first step will be finding out which one is used in your case. Open the right method and then compare conditions used by the method with data that you have in database.