I have written a code in php which gets the product image link in prestashop. The Link I get is correct and it works but when I and add it in the image tag I get http 404 not found.
I know what the problem is but I am unable to solve. I have posted the error I am getting. I didn't post any code since I don't think the error is code related (and the code is working fine too).
The link I have of the product image:
http://localhost/prestashop/12-home_default/printed-summer-dress.jpg
This works if I just copy and paste it in my browser, But when I send it to tpl file the link doesn't get changed and it works the same as above but when I add it in the image tag i.e. <img src="product link">
I get a new link:
http://localhost/prestashop/en/module/quotation/localhost/prestashop/12-home_default/printed-summer-dress.jpg
This throws a http 404 not found error
As you can see both the links are different. I can post the code if you like. If anyone wants to know how I am getting the links, I'll post it gladly.