-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.4
-- PHP version -- : 5.6.27
-- Browser(s) name and version -- : Firefox 49.0.2
Hello,
found several discussions about that, but no one leading to a concrete solution for the problem/request.
Product options are additional products added to the main products.
Since the options are real products in HikaShop, they have also their product images.
Actually is not possible to show the image next to the optional product in the "options" list.
But, for each optional product we have the "description" displayed in a tooltip.
If i add an image in the description field, the image is not displayed.
Tried to look at the code and I found why, working through overrides.
file: option.php line 126
$description = $this->escape(strip_tags(JHTML::_('content.prepare',$optionInfo->product_description)));
Actually, due to the "strips_tags" PHP function, all the HTML tages are stripped and plain text is shown in the tooltip.
If I try to use "allowable_tags" function coupled with strip_tags, in order to allow the image tags, it doesn't work.
If i remove "strips_tags" I see all the HTML code (product name + link to the image). Please remember that the image is included into the Product description (for each additional product). Output in the image attached.
What i'm not able to do is to display the "result" of the HTML code.
If the code will be treated as HTML, the image will be displayed in the tooltip.
Can you please help with this?
Thanks!