donesta Posted May 1, 2016 Share Posted May 1, 2016 Hello, I cant figure out how to do the following thing: I want to change the url of the products images, but i dont know how. I spend several ouers browsing the internet but cant find it. I also cant find the option in prestashop, i use 1.6.1.5 I want to do this: <img src="http://www.wolliez.nl/assets/photo1.jpg"> change into: <img src="/assets/photo1.jpg"> Can someone direct me in the wright way? Greetz Jake Link to comment Share on other sites More sharing options...
shokinro Posted May 1, 2016 Share Posted May 1, 2016 you need make changes to getImageLink() in following Link.php class /classes/Link.php Or (recommended) /override/classes/Link.php Link to comment Share on other sites More sharing options...
donesta Posted May 1, 2016 Author Share Posted May 1, 2016 Hello shokinro, thanx for the quick answer, I am a newbie so i dont no what too do with your information. Is it possible to give me a example? or should i hire a specialist to make this work? greetz Link to comment Share on other sites More sharing options...
shokinro Posted May 2, 2016 Share Posted May 2, 2016 It should be simple changes if you know the coding, otherwise, you may mess up the code to get into more trouble. Suggest you make a backup of original file before making any changes, so you can restore when you need go back. You can try to replace the last line of getImageLink() method as following to see if it works. From return $this->protocol_content.Tools::getMediaServer($uri_path).$uri_path; TO return $uri_path; Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now