Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Product images thumbnail wont displaying #23

Open
elsondinardo opened this issue Jun 11, 2017 · 6 comments
Open

Product images thumbnail wont displaying #23

elsondinardo opened this issue Jun 11, 2017 · 6 comments

Comments

@elsondinardo
Copy link

elsondinardo commented Jun 11, 2017

Only displaying the default magento image.

untitled-default

@antonhedling
Copy link

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

@elsondinardo
Copy link
Author

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

@raphaelcordeiro
Copy link

I have the same problem

@raphaelcordeiro
Copy link

The solution don't works :/

@guittavares
Copy link

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

@guittavares
Copy link

Hi... any news?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants