Affects Version/s: 184.108.40.206
Fix Version/s: None
Security Level: All-users
This problem happening when Combinations feature was disabled at
B.O > Advanced parameters > Performance
When you click "Add to cart" button, the product cover image won't be displayed correctly in add to cart popup window.
After the product has been added to the cart, the product cover image won't be displayed correctly in blockcart and shopping cart summary.
This problem happening because in the Cart.php classes file at getProducts method, the sql select query doesn't state the required variable to get product id_image from the database.
inside if (Combination::isFeatureActive())
there are sql leftJoin query which handle this, but then if the Combination feature was disabled, those sql leftJoin doesn't included.
Therefore the id_image value will ending up with a value :
e.g : en-default
Also there is a small mistake within the sql select query in the if statement, in there was stated :
To solve this problem, the clasess file Cart.php at getProducts method should be modified as following :
01. Place the related sql leftJoin query outside if/else statement
02. At the else statement, add the necessary statement into the sql select query :
The complete fix will be look like this :