Jump to content

Product Image Error on Buy Later Module


castdevs

Recommended Posts

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>

 

2.JPG

1.JPG

Link to comment
Share on other sites

  • 2 weeks later...
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.

  • Like 1
Link to comment
Share on other sites

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

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.

  • Like 1
Link to comment
Share on other sites

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 

spacer.png

It's really a tricky module

Link to comment
Share on other sites

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

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...