Jump to content

remove your store's domain from the image tag


donesta

Recommended Posts

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...