[英]click category name to show all sub category products in opencart
How do I do this -> Click category name to show all sub category products in opencart. 我该怎么做->单击类别名称以显示opencart中的所有子类别产品。 See this link .
看到这个链接 。 When I click Lehenga it shows some products.
当我单击Lehenga时,它显示了一些产品。 But, When I click Sarees or Salwar kameez it shows empty page.
但是,当我单击Sarees或Salwar kameez时,它显示空白页。
But In my localhost When I access Sarees Category link it shows some product lists. 但是在我的本地主机中,当我访问Sarees类别链接时,它会显示一些产品列表。 This site was developed by another developer.
该站点是由另一个开发人员开发的。 And I'm also new to opencart.
而且我也是opencart的新手。 How do I solve this?
我该如何解决?
I have solved this issue from opencart forum answer 我已经从opencart论坛答案中解决了这个问题
Go to catalog/controller/product/category.php
转到
catalog/controller/product/category.php
Find 'filter_category_id' => $category_id,
and add this line 'filter_sub_category' => true,
. 找到
'filter_category_id' => $category_id,
然后添加这行'filter_sub_category' => true,
Now it shows the all subcategory products when you access category name. 现在,当您访问类别名称时,它将显示所有子类别的产品。 I hope this answer will help anyone here..
我希望这个答案能对这里的任何人有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.