Post by amc » Tue Sep 16, 2008 10:01 pm

Is it possible to create two catagories in opencart.

thets say for example a clothes shop that caterd for men and woman

one catagorie would have clothes for woman, and then a second catagorie for mens clothes

[example]

----------------
womans section
----------------
.tshirts
.jeans
.shoes
.jewlery
.bags

----------------
mens section
----------------
.tshirts
.jeans
.shoes
.watches
.bags


would be great if i could get some pointers on getting to do this.

amc
Newbie

Posts

Joined
Sun Aug 31, 2008 8:26 am

Post by jty » Tue Sep 16, 2008 10:18 pm

Do you mean categories with sub categories? Open Cart can do that.
First create the top level category eg Women's and Men's
Then click on the folder on the left of the category in the list of categories. This will enable you to create the sub categories.
The trick is knowing that the folder on the left is the way into creating sub categories

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am

Post by amc » Wed Sep 17, 2008 6:38 am

im after a way to have 2 seperate main catagorie boxes,  i have seen this done with 1 shop in the live shop section. and have seen it done with zencart and virtuamart.

i dont mind having to play around with php  just dont no which files to start with

amc
Newbie

Posts

Joined
Sun Aug 31, 2008 8:26 am

Post by Qphoria » Wed Sep 17, 2008 7:36 am

Do you mean like Category - Men on the left side and Category - Women on the right side? Completely separate in 2 different boxes?

You could copy all the category files and make the new one category2

To start with, you'll need:
/catalog/extension/module/category.php
/catalog/language/extension/module/category.php
/catalog/template/default/extension/module/category.tpl

make clones of those and name them category2.php, etc

Then you will need to edit the sql in the extension/module/category2.php to only pull back categories that have some sort of identifier (perhaps the id of the Women category). Make the same, opposite change in the extension/module/category.php file to only pull back the Men category.

Then you will get to the next step of adding the admin section to enable the module

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by jty » Wed Sep 17, 2008 12:09 pm

Could it be done with css ????
We already have a menu with subcats beneath
All that is required is to make it look like a different box underneath (unless you want them placed elsewhere)
Can css be used to make it look like it's in a different box ?
amc wrote: i have seen this done with 1 shop in the live shop section.
Do you have the link so we can see what you mean ?

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am
Who is online

Users browsing this forum: No registered users and 1 guest