This is a very big site and client uses Sage integration. All the product images are on the server on the Sage directory eg:
Whilst this affects the offline preview when the site is uploaded al the images correctly get carried up to the acatalog folder.
However in recentproductssupport.js the javascript defines the recently viewed product image as this:
such that in the live site the image does not display and if you inspect element the image location is: //ABC-6/SageData/company.000/ACCDATA/IMAGES/whatevertheimage.jpg
How can I edit 'aRecentItem.sThumb.indexOf("file:///")' so that it gives the image filename as just whatevertheimage.jpg? This would then - with the catalog path added to Image as in the script - display correctly on the live site.
Thank you
Code:
\\ABC-6\SageData\company.000\ACCDATA\IMAGES\whatevertheimage.jpg
However in recentproductssupport.js the javascript defines the recently viewed product image as this:
Code:
var sImageURL = aRecentItem.sThumb.indexOf("file:///") == 0 ? aRecentItem.sThumb : catalogDir + aRecentItem.sThumb; // add catalog path to Image
How can I edit 'aRecentItem.sThumb.indexOf("file:///")' so that it gives the image filename as just whatevertheimage.jpg? This would then - with the catalog path added to Image as in the script - display correctly on the live site.
Thank you
Comment