What's New
Viewing 12 posts - 1 through 12 (of 12 total)
Viewing 12 posts - 1 through 12 (of 12 total)
You must be logged in to reply to this topic.
Hey,
I wanna use a atribute image as a product image on the products list. But it doesn’t work.
Example: http://bent.onecodestudio.pl/en/10-woman
Select color: http://bent.onecodestudio.pl/en/10-woman?q=Color-Fuchsia
Product images are still same.
In module manager I tried to turn off and on Compatibility mode option and turn off and on Magic option. But nothing help.
Theme: Warehouse
Presta: 1.7.7.0
Faceted search on center column: No
Could you help me?
Hi,
I added a piece of code to Prestashop core /src/Adapter/Presenter/Product/ProductLazyArray.php file in the function fillImages to fix the problem: http://bent.onecodestudio.pl/en/10-woman?q=Color-Fuchsia
if ($product['id_product_attribute'] && in_array($product['id_product_attribute'], $productImage['associatedVariants'])) {
$this->product['cover'] = $productImage;
break;
}
if ((!isset($product['id_product_attribute']) || !$product['id_product_attribute']) && !isset($this->product['cover']) && $productImage['id_image'] == $product['cover_image_id']) {
$this->product['cover'] = $productImage;
break;
}
Note the “Compatibility mode” option should be off on the Easy filter module.
Best regards.
Hello, I have one more question – if I choose a color of product and size of the product images don’t work properly – example: http://bent.onecodestudio.pl/en/10-woman?q=Color-Cornflower+blue/Size-M
You must be logged in to reply to this topic.