magento-autocomplete icon indicating copy to clipboard operation
magento-autocomplete copied to clipboard

Product images thumbnail wont displaying

Open elsondinardo opened this issue 7 years ago • 6 comments

Only displaying the default magento image.

untitled-default

elsondinardo avatar Jun 11 '17 14:06 elsondinardo

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

antonhedling avatar Nov 02 '17 08:11 antonhedling

Thank you for the reply! I made all the modifications, cleared all the caches and I still see the standard thumbnails. :(

elsondinardo avatar Mar 08 '18 15:03 elsondinardo

I have the same problem

raphaelcordeiro avatar Jul 23 '18 18:07 raphaelcordeiro

The solution don't works :/

raphaelcordeiro avatar Jul 23 '18 18:07 raphaelcordeiro

Hi, I made the suggested changes but only the default magento image still appears

guittavares avatar Nov 14 '19 12:11 guittavares

Hi... any news?

guittavares avatar Nov 27 '19 16:11 guittavares