https://github.com/mageplaza/magento-2-product-slider
使用CMS简码选择类别时:
{{block class="Mageplaza\Productslider\Block\CategoryId" template="Mageplaza_Productslider::productslider.phtml" products_count="8" heading="test heading" category_id="5" description="test"}}
category_id
字段显然是错误/不正确?我的类别 5 是Magento 2.2.7中的默认类别的子类别
我收到以下错误:
Error filtering template: Warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/MYFOLDER/vendor/mageplaza/magento-2-product-slider/Block/CategoryId.php on line 96
我有这个类别的产品,应该没问题吗?
请参阅随附的Github问题和屏幕截图:https://github.com/mageplaza/magento-2-product-slider/issues/49