Jump to content

Wrong images on Most Viewed (PS 8.0.1 - dashproducts 2.1.1 -- possibly not fixed yet)


R4Z

Recommended Posts

If I'm wrong please feel free to correct me, we don't usually go this deep into any CMS so we can be under some wrong assumptions on this.

Also, since I cannot enter forge.ps I'll post here in the meantime,

Watching the dashproducts module we've detected that the 'most viewed' tab shows wrong images for products, it can easily be resolved by changing line 332 (in function getTableMostViewed) of dashproducts.php

from ($product_obj->id)

'product_mini_' . $product_obj->id . '.' . $this->context->controller->imageType,

to ($row_image['id_image'])

'product_mini_'.$row_image['id_image'].'.'.$this->context->controller->imageType,

 

We checked on github (https://github.com/PrestaShop/dashproducts/blob/dev/dashproducts.php) and the development branch is still using product_obj->id so we understand it's still happening on the latest versions of the module.

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...