views:

39

answers:

1

can i retrieve the thumbnail product in the list of sub-product ( select form ) of a bundle product ? how to change the query?

thanks in advance

A: 

There are actually a bunch of ways to do this, but this one may help:

<?php $src = $this->helper('catalog/image')->init($_item, 'thumbnail')->resize(125); ?>
<img src='<?php print $src; ?>' />

If that doesn't work, you may need to check to make sure that the child item has the 'thumbnail' field loaded. Try:

<?php print $_item->getThumbnail(); ?>

If you still have no luck, let me know.

Thanks, Joe

Joseph Mastey