{"action":"created","issue":{"url":"https://api.github.com/repos/opencart/opencart/issues/431","repository_url":"https://api.github.com/repos/opencart/opencart","labels_url":"https://api.github.com/repos/opencart/opencart/issues/431/labels{/name}","comments_url":"https://api.github.com/repos/opencart/opencart/issues/431/comments","events_url":"https://api.github.com/repos/opencart/opencart/issues/431/events","html_url":"https://github.com/opencart/opencart/issues/431","id":10741421,"number":431,"title":"Show Subcategory Items in Category","user":{"login":"bizzynate","id":3502793,"avatar_url":"https://avatars.githubusercontent.com/u/3502793?v=3","gravatar_id":"","url":"https://api.github.com/users/bizzynate","html_url":"https://github.com/bizzynate","followers_url":"https://api.github.com/users/bizzynate/followers","following_url":"https://api.github.com/users/bizzynate/following{/other_user}","gists_url":"https://api.github.com/users/bizzynate/gists{/gist_id}","starred_url":"https://api.github.com/users/bizzynate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bizzynate/subscriptions","organizations_url":"https://api.github.com/users/bizzynate/orgs","repos_url":"https://api.github.com/users/bizzynate/repos","events_url":"https://api.github.com/users/bizzynate/events{/privacy}","received_events_url":"https://api.github.com/users/bizzynate/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":24,"created_at":"2013-02-07T15:45:09Z","updated_at":"2016-02-14T08:49:32Z","closed_at":"2013-02-07T16:28:59Z","body":"There seems to be an issue with products placed in a subcategory not appearing in the parent category's view. Upon some investigation, I discovered an \"extension\" (which is actually a modification of a core file) that corrects this behavior:\r\n\r\nhttp://www.opencart.com/index.php?route=extension/extension/info&extension_id=8565\r\n\r\nThe suggestion made by the contributor indicates to me that this may be a bug in the /catalog/controller/product/category.php file. It recommends changing line 195-196 from:\r\n\r\n     'filter_category_id' => $category_id,\r\n     'filter_filter'      => $filter,\r\n\r\nto:\r\n\r\n     'filter_category_id' => $category_id,\r\n     'filter_sub_category' => true,\r\n     'filter_filter'      => $filter,\r\n\r\nWhile this fixes the issue, it doesn't give a configurable option to the administrator, so perhaps instead of a hard-coded \"true\" value, this would become a variable linked to the category configuration from the administrator panel to allow a true/false selector.\r\n\r\n This proposed solution is based on the 1.5.5.1 release."},"comment":{"url":"https://api.github.com/repos/opencart/opencart/issues/comments/183853373","html_url":"https://github.com/opencart/opencart/issues/431#issuecomment-183853373","issue_url":"https://api.github.com/repos/opencart/opencart/issues/431","id":183853373,"user":{"login":"AdventureTK","id":17230971,"avatar_url":"https://avatars.githubusercontent.com/u/17230971?v=3","gravatar_id":"","url":"https://api.github.com/users/AdventureTK","html_url":"https://github.com/AdventureTK","followers_url":"https://api.github.com/users/AdventureTK/followers","following_url":"https://api.github.com/users/AdventureTK/following{/other_user}","gists_url":"https://api.github.com/users/AdventureTK/gists{/gist_id}","starred_url":"https://api.github.com/users/AdventureTK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdventureTK/subscriptions","organizations_url":"https://api.github.com/users/AdventureTK/orgs","repos_url":"https://api.github.com/users/AdventureTK/repos","events_url":"https://api.github.com/users/AdventureTK/events{/privacy}","received_events_url":"https://api.github.com/users/AdventureTK/received_events","type":"User","site_admin":false},"created_at":"2016-02-14T08:49:32Z","updated_at":"2016-02-14T08:49:32Z","body":"I don't see the point in it saying \"Show all\" when all it will show you is the same sub-category list that is already displayed in the very Category list they just clicked to \"Show all\" to view. In other words, someone would only click show all if they wanted to see all the products in a Category list and then use refine to cut it down to more specifics.  This \"show all\" button is definitely an issue and I consider it an error or fault and feel it should be corrected by OpenCart.  It is meant to SHOW ALL not show sub-category list, otherwise it should say: Show Sub-Category List. VERY DISAPPOINTING!! "}}