-- HikaShop version -- : 2.5.0
-- Joomla version -- : 2.5.28
-- PHP version -- : 5.5
Hi there,
I'm looking to use animated gifs as the featured image for products listed on the overall shop pages. Hikashop creates static images when uploaded to the product page, so I have currently added a custom field (ajax image) as a workaround, and am hoping to call these images using php on the views / product / img + field page in the backend.
I've had a good search and can't find anything that answers my query. I can add:
<?php echo $this->row->featuredimage; ?>
Which gives me the image filename, but also with added numbers on which are either caching or to keep the img secret? Either way calling the image that way doesn't work (the link works if I remove the numbers but I don't know how to call the image without these).
I then tried using the field class method that I read about:
<?php
$fieldsClass = hikashop_get('class.field');
$element=null;
$fields = $fieldsClass->getFields('',$element,'product');
echo $fieldsClass->show($fields, $this->row->featuredimage); ?>
Which displays an image, but again it is a static thumbnail and not the original image. I need to show the original, animated gif.
Many thanks for your help!
Graham