Skip to content

Instantly share code, notes, and snippets.

@haydenbbickerton
Created December 11, 2015 16:20
Show Gist options
  • Save haydenbbickerton/b0ddeb220c85f214c55d to your computer and use it in GitHub Desktop.
Save haydenbbickerton/b0ddeb220c85f214c55d to your computer and use it in GitHub Desktop.
Opencart (vQmod) Custom Items per Page
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<id>Custom Items per Page</id>
<version>0.0.1</version>
<vqmver>2.3.0</vqmver>
<author>Hayden - https://github.com/haydenbbickerton</author>
<file path="catalog/controller/product/" name="category.php,manufacturer.php,search.php,special.php">
<operation error="log" info="Change the limits. The first number is adjusted in Settings > Option > Default Items Per Page">
<search path="path/to/" position="replace"><![CDATA[$limits = array_unique(array($this->config->get('config_catalog_limit'), 25, 50, 75, 100));]]></search>
<add><![CDATA[$limits = array_unique(array($this->config->get('config_catalog_limit'), 32, 64, 128));]]></add>
</operation>
</file>
</modification>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment