1
我有以下要求;Magento查看list.phtml中的相关产品
我想在类别列表页(list.phtml)上显示配置产品的相关产品。 我想我可以使用[b] $ _ product [/ b]变量为每个产品的每个循环中的list.phtml中的某个调用,但我似乎无法填充relatedProductCollection 对不起,这一切都是新的它甚至有可能。
<?php foreach ($_productCollection as[b] $_product[/b]):?>
<li class="item<?php if(++$_iterator == sizeof($_productCollection)): ?>last<?php endif; ?>" >
<div class="product-shop">
<div class="f-fix">
<?php $product->getRelatedProductCollection(); ?>
</li>
<?php endforeach; ?>