Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A vQmod for OpenCart 1.5.6 to display products in sub-categories.
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<id>Display products in sub-categories while browsing a parent category</id>
<version>1.0.0</version>
<vqmver>2.4.0</vqmver>
<author>Jay Williams - jay@myd3.com</author>
<file name="catalog/controller/product/category.php">
<operation>
<search position="after"><![CDATA['filter_category_id' => $category_id,]]></search>
<add><![CDATA[ 'filter_sub_category' => true,]]></add>
</operation>
</file>
</modification>
@fazlihon

This comment has been minimized.

Copy link

fazlihon commented Mar 28, 2020

Hello!
Perfect solution!
How can I set a limit on the number of displayed products? OpenCart 2.3.0.2

@jaywilliams

This comment has been minimized.

Copy link
Owner Author

jaywilliams commented Mar 30, 2020

Sorry, I haven't used OpenCart since v1.5.6, so I'm afraid I wouldn't know off the top of my head.

@fazlihon

This comment has been minimized.

Copy link

fazlihon commented Mar 30, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.