castdevs Posted August 27, 2021 Share Posted August 27, 2021 I recently installed the buy later module https://addons.prestashop.com/it/wishlist-gift-card/26835-wishlist-buy-later-salva-per-dopo.html But when i save a product from the cart to the buy later, the products created by the prestashop backoffice didn't show the images Tryed to contact the support but without any response The only difference i see from browser inspector is: In the working product image: <img rv-src="product.image_link" alt="Faded Short Sleeves T-shirt" src="https://www.mysite.com/23255-small_default/hd-wd-purple-2tb-sata3-64mb-5400rpm-per-videosorveglianza-eu.jpg"> In the not working one: <img rv-src="product.image_link" alt="Faded Short Sleeves T-shirt" src="https://www.mysite.com/32501-small_default/.jpg"> Seems like it doens't find the image but is present in the ftp folders... Code in the .tpl <!-- product left content: image--> <div class="buylater-line-grid-left col-md-3 col-xs-4"> <span class="buylater-image media-middle"> <img rv-src="product.image_link" alt="Faded Short Sleeves T-shirt"> </span> </div> Link to comment Share on other sites More sharing options...
ComGrafPL Posted August 28, 2021 Share Posted August 28, 2021 Does this module have any settings? Devs should help you with that. Last update for this module was 2017. Whats your prestashop version? 1 Link to comment Share on other sites More sharing options...
castdevs Posted September 6, 2021 Author Share Posted September 6, 2021 On 8/28/2021 at 6:33 AM, ComGrafPL said: Does this module have any settings? Devs should help you with that. Last update for this module was 2017. Whats your prestashop version? PS 1.7.7.7 On settings there are just style options: https://gyazo.com/95908b92a87d43300b95bae5b5244ad2 😓 Link to comment Share on other sites More sharing options...
musicmaster Posted September 7, 2021 Share Posted September 7, 2021 On 8/27/2021 at 3:50 PM, castdevs said: <img rv-src="product.image_link" alt="Faded Short Sleeves T-shirt" src="https://www.mysite.com/32501-small_default/.jpg"> It is rather obvious what the error is. The image name is missing and that results in the in "/.jpg". So you need to find the template file that produces this output and change the label before the ".jpg". This should be the name but if you put there some random text it will work too. 1 Link to comment Share on other sites More sharing options...
castdevs Posted September 7, 2021 Author Share Posted September 7, 2021 54 minutes ago, musicmaster said: It is rather obvious what the error is. The image name is missing and that results in the in "/.jpg". So you need to find the template file that produces this output and change the label before the ".jpg". This should be the name but if you put there some random text it will work too. I found the portion of the module code thats shows the *.tpl in the front <!-- product left content: image--> <div class="buylater-line-grid-left col-md-3 col-xs-4"> <span class="buylater-image media-middle"> <img rv-src="product.image_link" alt="Faded Short Sleeves T-shirt"> </span> </div> But i don't know what generates the images url Link to comment Share on other sites More sharing options...
musicmaster Posted September 7, 2021 Share Posted September 7, 2021 1 hour ago, castdevs said: I found the portion of the module code thats shows the *.tpl in the front <!-- product left content: image--> <div class="buylater-line-grid-left col-md-3 col-xs-4"> <span class="buylater-image media-middle"> <img rv-src="product.image_link" alt="Faded Short Sleeves T-shirt"> </span> </div> But i don't know what generates the images url Are you sure this is the right place? Did you check by making some changes? It is rather puzzling to see "Faded Short Sleeves T-shirt" hard-coded in a template. An image should have a "src=" attribute. This link doesn't. So at best one could assume that it is transformed by javascript. 1 Link to comment Share on other sites More sharing options...
castdevs Posted September 8, 2021 Author Share Posted September 8, 2021 13 hours ago, musicmaster said: Are you sure this is the right place? Did you check by making some changes? It is rather puzzling to see "Faded Short Sleeves T-shirt" hard-coded in a template. An image should have a "src=" attribute. This link doesn't. So at best one could assume that it is transformed by javascript. Yes the image "alt" is written in the *.tpl The code is in views/templates/hook/displayShoppingCartFooter.tpl and editing it, it shows edits on the front of the site I also attach a screenshot of the /js folder of the module It's really a tricky module Link to comment Share on other sites More sharing options...
musicmaster Posted September 8, 2021 Share Posted September 8, 2021 I see two possible causes. One is that your shop doesn't have the link_rewrite field defined for this language and that that causes it to show up empty. The other is some kind of javascript error. But to check that out one needs access. Link to comment Share on other sites More sharing options...
castdevs Posted September 8, 2021 Author Share Posted September 8, 2021 I found that: If i disable the URL (mod_rewrite) from the SEO page, all the images are working If i enable the Url rewrite: the products created by hand (with image upload from backoffice) the products imported by the module ImporterOne (catalog managment) that import images from the suppliers shows the correct image Thank you for the help meanwhile 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