複数のカテゴリをループしようとしているので、ヘッダー タグに (2,43,11) のようなユーザーを挿入すると、現在、カテゴリが 1 つの ID のみを取得していることがわかります。何か案は?ありがとう!
ループコード:
<?php $currentID = Mage::getSingleton('cms/page')->getContentHeading(); ?>
<?php if($currentID): ?>
<?php
$categoryid = $currentID;
$category = new Mage_Catalog_Model_Category();
$category->load($categoryid);
$collection = $category->getProductCollection();
$collection->addAttributeToSelect('*');
foreach ($collection as $_product) { ?>
<li>
</li>
<?php } ?>
<?php endif;?>