PrestaShop / hummingbird

77 stars 73 forks source link

Tags are not displayed on product details page, quick view and product listing page when product has no image #617

Open florine2623 opened 3 months ago

florine2623 commented 3 months ago

Describe the bug and add attachments

When a product has no image the tags related to the products are not diplayed/not well displayed.

https://github.com/PrestaShop/hummingbird/assets/16019289/7c91cf14-cb7c-41b5-8ee3-96668d26cebd

Expected behavior

The tags should be displayed correctly. And an placeholder image should be displayed.

Steps to reproduce

  1. Install dev branch of hummingbird > Apply theme
  2. Create a product > Add a title
  3. Open the FO
  4. See in the homepage the product has the tags (New and Out-of-Stock) are not correctly displayed :x:
  5. Open the quick view : no tags are displayed :x:
  6. Click on See details : no tags are displayed

PrestaShop version(s) where the bug happened

develop

PHP version(s) where the bug happened

8.1

tblivet commented 2 months ago

@florine2623, @nicosomb, @amine-O Hello, the problem is due to the image not loading properly. Although the tags are present, they are not visible on the product.

To correct this:

After regenerating the images, the Front Office (FO) should display correctly ?

So, I'm not entirely sure if this should be considered a problem. This might have more to do with how the core handles theme installation ?