Post by pawanesh » Thu Feb 19, 2009 7:42 pm

Anyone please help!

1. How Can I display extended subcategories within a category in categories module ?

2. How can i remove BRANDS BOX from front end ?

pawanesh

Newbie

Posts

Joined
Thu Feb 19, 2009 7:34 pm

Post by pawanesh » Sun Feb 22, 2009 6:44 pm

How can i display sub category list after main category list ?

Newbie

Posts

Joined
Thu Feb 19, 2009 7:34 pm

Post by mal-schauen » Sun Feb 22, 2009 7:32 pm

Here in the forum, it is already described, I think! You have to be in the web directory each tpl-file. You can find them under opencart-> catalog-> view-> template

User avatar
Moderator

Posts

Joined
Sun Feb 08, 2009 11:16 pm
Location - Germany

Post by pawanesh » Sun Feb 22, 2009 9:57 pm

I will be great full, if you provide link for that section or post the modification required. Thanks.

Newbie

Posts

Joined
Thu Feb 19, 2009 7:34 pm

Post by jeffc » Mon Jun 15, 2009 12:50 pm

Looks like this is what you're looking for:
http://forum.opencart.com/viewtopic.php?t=1669

Newbie

Posts

Joined
Mon Jun 15, 2009 12:45 pm
Location - Chicago

Post by Qphoria » Mon Jun 15, 2009 7:21 pm

jeffc wrote:Looks like this is what you're looking for:
http://forum.opencart.com/viewtopic.php?t=1669

EH.. no .. that is for the old version of OpenCart. No longer relevant here.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by readyman » Mon Jun 15, 2009 9:10 pm

1. How Can I display extended subcategories within a category in categories module ?
What do you mean? Do you want them all to display 'open' - if so, you will need to open the categories module file - ie. catalog\controller\module\category.php & loop through the top level category and then loop through all sub categories as well.
2. How can i remove BRANDS BOX from front end ?
Go to the admin->extensions->modules and uninstall the 'Manufacturers' module.

http://www.alreadymade.com
Follow me on twitter.com/alreadymade


User avatar
Global Moderator

Posts

Joined
Wed May 20, 2009 5:16 am
Location - Sydney

Post by WeNDoR » Thu Jul 09, 2009 6:43 pm

please, coul someone tell me how to solve this problem ? I need the caregories to be expanded as default (if they have subcategories)

Newbie

Posts

Joined
Thu Jul 09, 2009 6:41 pm

Post by TAurus » Thu Aug 06, 2009 12:28 am

WeNDoR wrote:please, coul someone tell me how to solve this problem ? I need the caregories to be expanded as default (if they have subcategories)
open catalog\controller\module\category.php
and replace

Code: Select all

if ($category_id == $result['category_id']) { 
				$children = $this->getCategories($result['category_id'], $new_path);
}
with

Code: Select all

//if ($category_id == $result['category_id']) { //hack to display all subcategories
				$children = $this->getCategories($result['category_id'], $new_path);
//}

Newbie

Posts

Joined
Thu Jul 30, 2009 7:41 pm

Post by GreEnergy Living » Tue Sep 29, 2009 11:08 pm

I've been playing around with this issue for sometime now. Thanks so much for the post!


Posts

Joined
Tue Sep 29, 2009 10:52 pm

Post by liyen » Thu Nov 19, 2009 4:17 pm

TAurus wrote:
WeNDoR wrote:please, coul someone tell me how to solve this problem ? I need the caregories to be expanded as default (if they have subcategories)
open catalog\controller\module\category.php
and replace

if ($category_id == $result['category_id']) {
$children = $this->getCategories($result['category_id'], $new_path);
}

with

//if ($category_id == $result['category_id']) { //hack to display all subcategories
$children = $this->getCategories($result['category_id'], $new_path);
//}
Hi, Is it possible to only display the first two levels of the category?

eg:
Beauty > For Her > Accessories>
Beauty > For Her > Bags>
Beauty > For Him > Bags>
Beauty > For Baby > Bags>
I only want to display:
Beauty
- For Her
- For Him
- For Baby

Newbie

Posts

Joined
Tue Oct 06, 2009 2:55 pm

Post by Qphoria » Thu Nov 19, 2009 8:39 pm

It already only displays like that on the category sidebox. It just shows the full path in the admin area

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by liyen » Fri Nov 20, 2009 10:00 am

Thanks for your reply, Qphoria ,


As I do the following amendment, the 3rd level category will be displayed. Ids there any way to only show the 1st two levels?
//if ($category_id == $result['category_id']) { //hack to display all subcategories
$children = $this->getCategories($result['category_id'], $new_path);
//}

Newbie

Posts

Joined
Tue Oct 06, 2009 2:55 pm

Post by Qphoria » Fri Nov 20, 2009 10:24 am

Try this:

Change:

Code: Select all

$children = $this->getCategories($result['category_id'], $new_path);
To:

Code: Select all

if (substr_count($new_path, '_') < 1) {
    $children = $this->getCategories($result['category_id'], $new_path);
}

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by liyen » Fri Nov 20, 2009 10:31 am

It is working!!!

Thanks so much Qphoria ~ ;)

Newbie

Posts

Joined
Tue Oct 06, 2009 2:55 pm

Post by moggiex » Sat Nov 28, 2009 6:01 am

This would be one of those things that would be fantastic as a user configurable setting within OpenCart.

Matt

Code: Select all

It was like that when I found it, honest!


User avatar
Active Member

Posts

Joined
Mon Nov 09, 2009 9:55 pm

Post by superuser » Sun Dec 27, 2009 12:44 pm

May I know how to change the controller to display the category and sub category in this format?
<ul>
<li>Main-Category1</li>
<li>SubCategory1a</li>
<li>SubCategory1b
<ul>
<li>SubCategory2a</li>
<li>SubCategory2b</li>
</ul>
</li>
<li>Main-Category2</li>
</ul>
The default formatting is like this (if i not mistaken...) :
<ul>
<li>Main-Category1
<ul><li>SubCategory1a</li>
<li>SubCategory1b
<ul>
<li>SubCategory2a</li>
<li>SubCategory2b</li>
</ul>
</li></ul></li>
<li>Main-Category2</li>
</ul>

New member

Posts

Joined
Sat Dec 19, 2009 8:15 pm

Post by superuser » Tue Dec 29, 2009 2:30 pm

superuser wrote:May I know how to change the controller to display the category and sub category in this format?
<ul>
<li>Main-Category1</li>
<li>SubCategory1a</li>
<li>SubCategory1b
<ul>
<li>SubCategory2a</li>
<li>SubCategory2b</li>
</ul>
</li>
<li>Main-Category2</li>
</ul>
The default formatting is like this (if i not mistaken...) :
<ul>
<li>Main-Category1
<ul><li>SubCategory1a</li>
<li>SubCategory1b
<ul>
<li>SubCategory2a</li>
<li>SubCategory2b</li>
</ul>
</li></ul></li>
<li>Main-Category2</li>
</ul>

Any idea?

New member

Posts

Joined
Sat Dec 19, 2009 8:15 pm

Post by jkungfu » Wed Jan 20, 2010 9:55 am

this has another problem, it is only the first catelory can use SEO urls, other catelogies would not !

淄博网站建设, 淄博网站优化


Active Member

Posts

Joined
Fri Jan 01, 2010 8:03 pm


Post by Qphoria » Wed Jan 20, 2010 10:52 am

all categories work with SEO for me.. even 4 levels deep

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: Amazon [Bot] and 79 guests