Problem with product images

Merchant
จาก United Kingdom
เป็นสมาชิกตั้งแต่ เม.ย. 2019

Hi there i'm having a little problem with product images after clicking on it only small empty box popping up ??
When im using Product Images: Watermark box is bigger but still without picture or product?
Im on 2.2.0 any ideas
Thanks for Help

tim
Founder
จาก Sweden
เป็นสมาชิกตั้งแต่ พ.ค. 2013
tim

The original image does not seem to be there anymore.

tim
Founder
จาก Sweden
เป็นสมาชิกตั้งแต่ พ.ค. 2013
tim

Turn off watermark. I cant see the original image otherwise

Merchant
จาก United Kingdom
เป็นสมาชิกตั้งแต่ เม.ย. 2019

ok done

Merchant
จาก United Kingdom
เป็นสมาชิกตั้งแต่ เม.ย. 2019

Thanks Tim any ideas how to solve that ??
thanks

tim
Founder
จาก Sweden
เป็นสมาชิกตั้งแต่ พ.ค. 2013
tim

Make sure you are on the latest dev release. If it's not solved already then a fix will be committed and can be referenced.

Merchant
จาก United Kingdom
เป็นสมาชิกตั้งแต่ เม.ย. 2019

Yes updated to latest dev but problem seems to be same

LiteCart Fan
จาก Poland
เป็นสมาชิกตั้งแต่ ส.ค. 2018

Hey @tomydevon. I was wrong. I had the same problem after all ( [url=https://www.litecart.net/en/forums/15/errors-and-troubleshooting/9473/wrong-image-url]https://www.litecart.net/en/forums/15/errors-and-troubleshooting/9473/wrong-image-url[/url] ). 
And if I remember correctly I made a really ugly workaround, but hey, at least it started to work.
Edit [i]/pages/product.inc.php[/i]
Find 
'original' => ltrim(!empty($product->images) ? WS_DIR_IMAGES . $product->image : WS_DIR_IMAGES . 'no_image.png', '/'),
and replace with
'original' => ltrim(!empty($product->images) ? '../' . WS_DIR_IMAGES . $product->image : WS_DIR_IMAGES . 'no_image.png', '/'),
Should help until the release of a proper fix. 
Please check if it resolves your problem.

Merchant
จาก United Kingdom
เป็นสมาชิกตั้งแต่ เม.ย. 2019

Hey thanks yes its working but still only for single photo but better than nothing .
Many thanks for help

LiteCart Fan
จาก Poland
เป็นสมาชิกตั้งแต่ ส.ค. 2018

So, make the same amendment for "extra images"
Find
'original' => ltrim(WS_DIR_IMAGES . $image, '/'),
and replace with
'original' => ltrim('../' . WS_DIR_IMAGES . $image, '/'),
Should do the trick

Merchant
จาก United Kingdom
เป็นสมาชิกตั้งแต่ เม.ย. 2019

@skoruppa Many thanks for help again all working now

tim
Founder
จาก Sweden
เป็นสมาชิกตั้งแต่ พ.ค. 2013
tim

@alins Can't confirm, are you running an installation on the root of the domain or a subfolder?

tim
Founder
จาก Sweden
เป็นสมาชิกตั้งแต่ พ.ค. 2013
tim

@alins do you have the latest dev update? I can't confirm this.

This thread has been closed due to long inactivity. Posting to it is not possible.
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.