I want to display all products in onepage while clicking a single button in main menu and also need to display category in main menu...
thank in advance...!
I want to display all products in onepage while clicking a single button in main menu and also need to display category in main menu...
thank in advance...!
Display Alll Product in one Page
You have to create separate page for displaying all products.
catalog\model\catalog\allproduct.php
and paste
code this http://pastebin.com/suF5TP3zcatalog\controller\productallproduct.php
and
paste below code http://pastebin.com/jZq3hZyccatalog\view\theme\default\template\productallproduct.tpl
and paste
below code http://pastebin.com/1HNh3x73catalog\language\en-gb\product\allproduct.php
and paste below code http://pastebin.com/EcyJH7F9
I suggest don't make any change in the default theme codes and structure. If you already using a custom theme you can easily create a menu and define to all categories included all products under the one menu or button. Lets get over with in that way : For example you have 5 categories. Every category includes over ten products or much.
That's it !
Maybe you would like to play menu css a bit. Like i said before, if you already using a custom theme, you dont need to fork your core codes especially the default theme.
Let me know if any help.
The way i did its something like this
Controller : ControllerProductCategory
inside the index function replace
if (isset($this->request->get['limit'])) {
$limit = $this->request->get['limit'];
} else {
$limit = $this->config->get('config_product_limit');
}
with
if (isset($this->request->get['viewall'])) {
$limit = "";
} else if (isset($this->request->get['limit'])) {
$limit = $this->config->get('config_product_limit');
} else {
$limit = $this->config->get('config_product_limit');
}
Also make this change to display all the products without category filter
replace this code
if ($category_info) {
$this->document->setTitle($category_info['meta_title']);
$this->document->setDescription($category_info['meta_description']);
$this->document->setKeywords($category_info['meta_keyword']);
With this code
if (($category_info) || ($category_id == 0)) {
if ($category_id == 0) {
$this->document->setTitle('all products');
$this->document->setDescription('all products');
$this->document->setKeywords('all products');
$this->data['heading_title'] = 'all products';
$category_info['description'] = '';
$category_info['image'] = '';
} else {
$this->document->setTitle($category_info['name']);
$this->document->setDescription($category_info['meta_description']);
$this->document->setKeywords($category_info['meta_keyword']);
$this->data['heading_title'] = $category_info['name'];
}
and at the last create a new category , you can name it to anything you want. and give the link something like this
https://www.yourwebsite.com/yourCategoryname?viewall=viewall?viewall=viewall
You can place this link anywhere you want and it will load all the products without any pagination.
let me know if you still don't understand anything anyehere.