Как вариант добавить к сортировке показать все, иначе не понимаю что нужно вот вкмод PHP: <!-- Show 'All' as highest value in drop-down box to limit shown products //--><!-- Add modification to your own language files. English and Swedish are included //--><modification> <id><![CDATA[Show 'All' as maximum limit in drop-down]]></id> <version><![CDATA[1.5.4]]></version> <vqmver><![CDATA[2.3.0]]></vqmver> <author><![CDATA[esefrsv]]></author><!-- Products by Category //--> <file name="catalog/language/english/product/category.php"> <operation error="log"> <search position="before"><![CDATA[?>]]></search> <add><![CDATA[$_['text_limit_all'] = 'All';]]></add> </operation> </file> <file name="catalog/language/swedish/product/category.php"> <operation error="log"> <search position="before"><![CDATA[?>]]></search> <add><![CDATA[$_['text_limit_all'] = 'Alla';]]></add> </operation> </file> <file name="catalog/controller/product/category.php"> <operation error="log"> <search position="replace" offset="30"><![CDATA[$this->data['limits'] = array();]]></search> <add><![CDATA[ $this->data['limits'] = array(); $limits = array_unique(array($this->config->get('config_catalog_limit'), 40, 60, 80, $this->language->get('text_limit_all'))); sort($limits, SORT_NATURAL); foreach($limits as $limits){ if ($limits == $this->language->get('text_limit_all')) { $this->data['limits'][] = array( 'text' => $limits, 'value' => 99999, 'href' => $this->url->link('product/category', 'path=' . $this->request->get['path'] . $url . '&limit=99999') ); } else { $this->data['limits'][] = array( 'text' => $limits, 'value' => $limits, 'href' => $this->url->link('product/category', 'path=' . $this->request->get['path'] . $url . '&limit=' . $limits) ); } }]]></add> </operation> </file><!-- Products by Manufacturer //--> <file name="catalog/language/english/product/manufacturer.php"> <operation error="log"> <search position="before"><![CDATA[?>]]></search> <add><![CDATA[$_['text_limit_all'] = 'All';]]></add> </operation> </file> <file name="catalog/language/swedish/product/manufacturer.php"> <operation error="log"> <search position="before"><![CDATA[?>]]></search> <add><![CDATA[$_['text_limit_all'] = 'Alla';]]></add> </operation> </file> <file name="catalog/language/swedish/product/manufacturer.php"> <operation error="log"> <search position="replace" offset="30"><![CDATA[$this->data['limits'] = array();]]></search> <add><![CDATA[ $this->data['limits'] = array(); $limits = array_unique(array($this->config->get('config_catalog_limit'), 40, 60, 80, $this->language->get('text_limit_all'))); sort($limits, SORT_NATURAL); foreach($limits as $limits){ if ($limits == $this->language->get('text_limit_all')) { $this->data['limits'][] = array( 'text' => $limits, 'value' => 99999, 'href' => $this->url->link('product/manufacturer/info', 'manufacturer_id=' . $this->request->get['manufacturer_id'] . $url . '&limit=99999') ); } else { $this->data['limits'][] = array( 'text' => $limits, 'value' => $limits, 'href' => $this->url->link('product/manufacturer/info', 'manufacturer_id=' . $this->request->get['manufacturer_id'] . $url . '&limit=' . $limits) ); } }]]></add> </operation> </file><!-- Products in Search result //--> <file name="catalog/language/english/product/search.php"> <operation error="log"> <search position="before"><![CDATA[?>]]></search> <add><![CDATA[$_['text_limit_all'] = 'All';]]></add> </operation> </file> <file name="catalog/language/swedish/product/search.php"> <operation error="log"> <search position="before"><![CDATA[?>]]></search> <add><![CDATA[$_['text_limit_all'] = 'Alla';]]></add> </operation> </file> <file name="catalog/controller/product/search.php"> <operation error="log"> <search position="replace" offset="30"><![CDATA[$this->data['limits'] = array();]]></search> <add><![CDATA[ $this->data['limits'] = array(); $limits = array_unique(array($this->config->get('config_catalog_limit'), 40, 60, 80, $this->language->get('text_limit_all'))); sort($limits, SORT_NATURAL); foreach($limits as $limits){ if ($limits == $this->language->get('text_limit_all')) { $this->data['limits'][] = array( 'text' => $limits, 'value' => 99999, 'href' => $this->url->link('product/search', $url . '&limit=99999') ); } else { $this->data['limits'][] = array( 'text' => $limits, 'value' => $limits, 'href' => $this->url->link('product/search', $url . '&limit=' . $limits) ); } }]]></add> </operation> </file><!-- Products by Special //--> <file name="catalog/language/english/product/special.php"> <operation error="log"> <search position="before"><![CDATA[?>]]></search> <add><![CDATA[$_['text_limit_all'] = 'All';]]></add> </operation> </file> <file name="catalog/language/swedish/product/special.php"> <operation error="log"> <search position="before"><![CDATA[?>]]></search> <add><![CDATA[$_['text_limit_all'] = 'Alla';]]></add> </operation> </file> <file name="catalog/controller/product/special.php"> <operation error="log"> <search position="replace" offset="30"><![CDATA[$this->data['limits'] = array();]]></search> <add><![CDATA[ $this->data['limits'] = array(); $limits = array_unique(array($this->config->get('config_catalog_limit'), 40, 60, 80, $this->language->get('text_limit_all'))); sort($limits, SORT_NATURAL); foreach($limits as $limits){ if ($limits == $this->language->get('text_limit_all')) { $this->data['limits'][] = array( 'text' => $limits, 'value' => 99999, 'href' => $this->url->link('product/special', $url . '&limit=99999') ); } else { $this->data['limits'][] = array( 'text' => $limits, 'value' => $limits, 'href' => $this->url->link('product/special', $url . '&limit=' . $limits) ); } }]]></add> </operation> </file></modification>
Спасибо за оперативность, но добавочный пункт в выпадающем списке, имхо, не лучшее решение: 1) его надо искать, чтобы найти, 2) лишние действия мышкой нынче стали раздражать избалованных пользователей. Имею мысль добавить кнопку "ВсёСразу" в строку листающих страницы текстовых кнопок-ссылок [<] [1] [2] [>] [ПоказатьВсё].