We have three prestashops of which Shop A is the main shop containing all products. Shop B and C are subshops holding special categories from main shop. All data is synchronized between main and the two subshops everyday. So new products will be distributed to subshops automatically.
Now all images reside only inside the main shops img/p folders. For this I simply replaced the end of Link.php's getImageLink function:
Question
oliiiix
Hello Everyone 🙂
We have three prestashops of which Shop A is the main shop containing all products. Shop B and C are subshops holding special categories from main shop. All data is synchronized between main and the two subshops everyday. So new products will be distributed to subshops automatically.
Now all images reside only inside the main shops img/p folders. For this I simply replaced the end of Link.php's getImageLink function:
$new_path = str_replace("www.subshopdomain.tld/s2t", "www.mainshopdomain.tld/shop5", $this->protocol_content.Tools::getMediaServer($uri_path).$uri_path); return $new_path;
But this isn't working anymore and no pictures are being displayed. The new srcset attribute now only displays the three links:
https://www.subshopdomain.tld 211w,
https://www.subshopdomain.tld 218w,
https://www.subshopdomain.tld 250w
So as you can see instead of replacing anything, it just deleted everything important after the TLD and I can't figure out why. Anybody a clue? 🙂
Thanks a lot!
Oli
5 answers to this question
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