开发者

how to retrieve the image product in the list of sub-product ( select form ) of a bundle product

开发者 https://www.devze.com 2022-12-26 13:54 出处:网络
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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消