how to retrieve the image product in the list of sub-product ( select form ) of a bundle product
Can I retrieve the thumbnail product in the list of sub-product (sel开发者_如何学Cect form) of a bundle product? How to change the query?
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
精彩评论