-- url of the page with the problem -- :
www.121time.com
-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.6.5
-- PHP version -- : 5.6.22
-- Browser(s) name and version -- : chrome
Dear Team
We have a website where customised products are added to the cart, all products being unique (watches)
We developed a module where we could integrate and add each product to the basket without any issues. But we cannot add the image/thumbnail (generated by our server in png) of the custom product and attach it to the related product in the cart.
We added in our helper file the code below. Can you see an obvious reason or could give us a few tricks how we can add the visual of the product in the cart also?
Thank you in advance for your help
Jean-Loup
$image = new stdClass();
$image->file_ref_id = $result;
$image->file_type = 'product';
$image->file_path = $imageURL;
$fileClass = hikashop_get('class.file');
$id = $fileClass->save($image);
$product->images = array($id);
$productClass->updateFiles($product,$result,'images');