If you want side bar to display any category as the same to top menu bar then just simple change as following:
catalog/controller/module/category.php
Find
insert after
Find:
insert before it:
If you want sidebar category be controlled seaparatelly then do as following
First You need to add "top" equivalent selector to admin side for example "Side".
Edit your model file to store it value
Then edit your category.php module file (catalog/module/category.php) to display categories if "Side" selector is checked.
Just make xml for you all for free here: http://opencart.goleo.vn/Side_bar_category
catalog/controller/module/category.php
Find
Code: Select all
foreach ($categories as $category) {
Code: Select all
if ($category['top']) {
Code: Select all
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/category.tpl')) {
Code: Select all
}
First You need to add "top" equivalent selector to admin side for example "Side".
Edit your model file to store it value
Then edit your category.php module file (catalog/module/category.php) to display categories if "Side" selector is checked.
Just make xml for you all for free here: http://opencart.goleo.vn/Side_bar_category
GOLDEN LEOPARD SYSTEM SOLUTION
An ICT System Solution Company in Vietnam
Website: Store: http://opencart.goleo.vn or http://www.opencart.com/index.php?route ... rname=alin
I'm not understanding. How is he a lifesaver? He just said what to do, not HOW to do it!? He only have the first simple set of code to add to the category controller file...he didn't leave any steps on the second half of the equation so how did you get it to work?
aviatedman wrote:I'm not understanding. How is he a lifesaver? He just said what to do, not HOW to do it!? He only have the first simple set of code to add to the category controller file...he didn't leave any steps on the second half of the equation so how did you get it to work?
follow this link
http://opencart.goleo.vn/Side_bar_category
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
Who is online
Users browsing this forum: No registered users and 7 guests