Jump to content

[Resolu] Problème d'affichage images accueil produit


Recommended Posts

Bonjour à tous,

 

Je suis en train de créer ma boutique Prestashop, j'ai eu quelques petits soucis et j'ai toujours trouvé les solutions sur ce forum. Mais après avoir bien cherché, je ne trouve rien pour ce problème ci...

 

Je m'explique :

Hier j'ai eu un problème de régénération d'images (erreur 500)et la grosse majorité de mes images avaient disparues. J'ai fait évoluer mon offre chez mon hébergeur pour ne pas avoir à re-uploader toutes mes images manuellement.

 

Ce matin, je régénère et tout reviens! Sauf les images de la miniature du récap produit (je joint un lien pour mieux comprendre http://www.traveller...ir-femmes-biker).

 

A priori ces images correspondent à la taille home_default (les images sur ma page d'accueil on étés régénérées correctement http://www.traveller.../Prestashop/fr/).

 

L'affichage a été changé manuellement par la personne qui s'occupe de mon site (je ne connais rien aux codes...). Il a fait une manip pour afficher ma liste de produits en mosaïque et non en colonne.

Je ne sais pas si ça peut avoir un lien, mais je préfère le signaler au cas où...

 

Un grand merci d'avance pour votre aide, je ne sais plus quoi faire!

Edited by Traveller Shop (see edit history)
Link to comment
Share on other sites

One of solutions:

 

Open themes/your theme/product-list.tpl

 

Find

<img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}"

 

Replace with:

<img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}"

Link to comment
Share on other sites

Thank you for your help doubleD, but I don't understand anything about codes and lines....

If it is the only solution I have to talk to my friend who administer my website.

 

Any other simple solutions?

 

Another solution is to create one more image type called 'home' and generate images for the type

 

Go to BackOffice->Preferences->Images

Click Add New, call it home, set size and options as they are for home_default, save new image type

 

Regenerate images for Product->home

  • Like 1
Link to comment
Share on other sites

I just try it and it's not working.....

Are you sure the images were regenerated successfully? check img folder to make sure

 

You can disable Friendly URL ( Preferences->SEO & URL-> set Friendly url to NO) to find out the exact path to the image.

 

But much simplier way is the first solution...

Edited by doubleD (see edit history)
Link to comment
Share on other sites

Images were generated successfully, I have a message at the end of the operation.

And my images are correctly charged in the page of product creation.

But I don't have any folder on my computer, I just have an access for administrating the website.

 

(sorry for my bad english)

Link to comment
Share on other sites

Images were generated successfully, I have a message at the end of the operation.

And my images are correctly charged in the page of product creation.

But I don't have any folder on my computer, I just have an access for administrating the website.

 

(sorry for my bad english)

 

If you had a message it doesn't mean they were successfully generated ;)

 

Product creation page uses different type, not home

 

To see if there is an image in the folder, go to SEO and URL and disable Friendly url, then you can copy image link from your page

 

http://www.traveller-shop.com/Prestashop/10-home/gilet-lady-rider-tresse-biker.jpg

- no image

 

http://www.traveller-shop.com/Prestashop/10-home_default/gilet-lady-rider-tresse-biker.jpg

- image is here

Edited by doubleD (see edit history)
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...