문제

I have one block on the page :

<block type="obishomeaddon/customcategory" name="customcategory"   template="homeaddon/customcategory.phtml">
    <action method="setData"> <name>column_count</name> <value>4</value> </action>
    <action method="setData"> <name>category_id</name> <value>213</value> </action>
</block>

Now, I want to have two of these blocks but different category_id. The problem I have is Magento will loop through the XML first, so the last category_id will be set and all the blocks will have the same category_id

Which is a good way to solve this problem?

도움이 되었습니까?

해결책

Please make sure your blocks have different names.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top