English 中文(简体)
Magento view related products in list. 页: 1
原标题:Magento view related products in list.phtml
  • 时间:2011-08-23 04:38:04
  •  标签:
  • magento

我有以下要求:

I want to show a products configured related products on the category listing page (list.phtml). I figured I could make some call on the list.phtml inbetween the for each loop for each product using the [b]$_product[/b] variable but I can t seem to populate the relatedProductCollection sorry new to all this is it even possible.

<?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; ?>
问题回答

<>产品已用于称为“与企业有关的学习功能”。

but,

在座标中,你把它作为$_product

你们能否看到差异?

<>下限>缺失。 这取自你的法典。 在不同地点和尝试中使变数相同。





相关问题
Magento addFieldToFilter allow NULLs

When using the Magento collection method addFieldToFilter is it possible to allow filtering by NULL values? I want to select all the products in a collection that have a custom attribute even if no ...

Get product link from Magento API

I am new to Magento and using their API. I need to be able to get the product url from the API call. I see that I can access the url_key and url_path, but unfortunately that s not necessarily what ...

magento extension installation

I want to install a Magento extension in WAMP, but not from the Magento connect system. How can I do this? I have the module (extension) code and I already installed the sample data in the Magento ...

Link to a specific step in onepage checkout

Is it possible to redirect the browser to nth step in the onepage checkout? If so, how would one go about doing it? I m working on a payment module and have a sort of "cancel" action that i would ...

How do I filter a collection by a YesNo type attribute?

I have a ‘featured’ attribute, which has a Yes/No select-list as the admin input. I presume that the values for Yes and No are 1 and 0, as they are for every other Yes/No list. However, if I try and ...

热门标签