1
我有一個$ IDS一些產品的ID,我想使它們在磁默認目錄/所屬類別塊,創建塊`目錄/定製產品product_list` IDS
echo $this->getLayout()
->createBlock('catalog/product_list', '',
array(
'template'=> 'catalog/product/list.phtml' ,
"product_id" => $ids)
)->toHtml();
這是不工作要麼
echo $this->getLayout()
->createBlock('catalog/product_list', '',
array(
'template'=> 'catalog/product/list.phtml' ,
"product_id" => $ids)
)->setProductId($ids)->toHtml();
換句話說我想此塊
{{block type="catalog/product_list" product_id="1,2,3" template="catalog/product/list.phtml"}}