Magento - get all categories containing products by brand

点点圈 提交于 2019-12-06 10:40:51
  1. Add custom category attribute allmanufacturers(http://inchoo.net/ecommerce/magento/how-to-add-new-custom-category-attribute-in-magento/).

  2. Run a cron that will go through all products for each category check its manufacturer and in this allmanufacturers customer attribute populate a (,) separated manufacturer value.

Now in your code you just need to check "custom category attribute -- allmanufacturers" value for specific manufacturer and populate left column.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!