magento-autocomplete
magento-autocomplete copied to clipboard
Product images thumbnail wont displaying
Only displaying the default magento image.
Hey man, I had the same issue. Solved it by modifying the following files:
app/code/community/Bubble/Autocomplete/Model/Observer.php
Change:
$collection->addAttributeToFilter('name', array('notnull' => true))
->addAttributeToFilter('image', array('notnull' => true))
->addAttributeToFilter('url_path', array('notnull' => true))
->addStoreFilter()
->addPriceData()
to:
$collection->addAttributeToFilter('name', array('notnull' => true))
->addAttributeToFilter('image', array('notnull' => true))
->addAttributeToFilter('url_path', array('notnull' => true))
->addAttributeToSelect('thumbnail')
->addStoreFilter()
->addPriceData()
Then in app/design/frontend/base/default/template/bubble/autocomplete/js.phtml, change:
if (product.image && product.image != 'no_selection') {
img = baseUrlMedia + product.image;
}
to:
if (product.thumbnail && product.thumbnail != 'no_selection') {
img = baseUrlMedia + product.thumbnail;
}
Clear the local storage and refresh magento cache and it should work
Thank you for the reply! I made all the modifications, cleared all the caches and I still see the standard thumbnails. :(
I have the same problem
The solution don't works :/
Hi, I made the suggested changes but only the default magento image still appears
Hi... any news?