[UPDATE 2025] Prestashop 1.7 Bugs Resolver Guideline

Publié par David le

Set the stock to 0 for all product combinations that do not have an image

Safety step: preview affected rows with a SELECT

Correct UPDATE query: set stock to 0 for combinations without an image

How to Find PrestaShop Color Attributes Without Swatches (and See Which Products Use Them)

If you’re running a fashion or design-heavy PrestaShop store, your color swatches are a big part of the user experience. But over time, it’s very common to end up with:

  • color attributes with no color code,

  • no texture image either,

  • and yet those attributes are still attached to real products.

Result?
Empty color boxes, broken swatches, or combinations that are confusing for your customers.

In this post, we’ll build a small diagnostic PHP tool that:

  1. Lists all color/texture attributes that have:

    • no color code, and

    • no texture image (no file in /img/co/).

  2. Shows which products and combinations are using each of those “broken” attributes.

You can then decide whether to fix them (assign a color or texture) or clean them up.

  • Connect to your server (FTP/SSH).

  • Go to the root of your PrestaShop installation (where config/config.inc.php is).

  • Create a new file, for example: liste_attributs_sans_vignette.php

  • Paste the script below into that file.

Open your browser and go to: https://your-shop.com/liste_attributs_sans_vignette.php

  1. You’ll see a report like:

    • Attribute #12 – Color / Old Blue
      Color: (empty)
      Products / combinations using this attribute:

      • Product ID 101 – Denim Jacket (Combination ID 555, ref DJ-BLUE-M)

      • Product ID 102 – Skinny Jeans (Combination ID 556, ref SJ-BLUE-38)

    • Attribute #27 – Color / Something
      Color: (empty)
      No product is using this attribute.

Every block corresponds to one attribute that:

  • belongs to a color group,

  • has no color code,

  • has no swatch image in /img/co/,

  • and optionally is still attached to one or more products.

Stretched product images on phone only

In the module Performance Pro > HTML Optimization > Enable Add missing image size

Save button do not display in product catalog

Prestashop 1.7

  •  Théme Warehouse : le bouton save ne s’affiche plus.
  • Dans ./app/admin/themes/new-theme/public/product.css
  • On recherche .product-footer input.save{display:none}
  • et on le remplace par .product-footer input.save{display:inline-block}
  • Supprimer /public_html/var/cache/*
  • Supprimer le cache du navigateur

Prestashop 8

  • ./adminXXX/themes/new-theme/public/product.css

Cannot write no-picture image to (categories) images folder

Rajouter une image à la langue (dispo dans img/c/en.jpg)

Going to the cart redirect you directly on homepage

In the module Performance Pro > Ressource Loading > Disable Prefetch on hover

Argument 4 Error

Argument 4 passed to PrestaShop\PrestaShop\Core\Domain\Order\QueryResult\OrderCustomerForViewing::__construct() must be of the type string, null given, called in /home/……/……/src/Adapter/Order/QueryHandler/GetOrderForViewingHandler.php on line 236

Source : https://github.com/PrestaShop/PrestaShop/issues/22215

 

Catégories : Prestashop

0 commentaire

Laisser un commentaire

Emplacement de l’avatar

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *