Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding a second "categories" section


jtnaylor

Recommended Posts

Posted

Hello everyone this is my first post here but I've been reading quite a bit.

 

I have my OSC store up and running on my site. It's a bike accessories store.

 

I have "CATEGORIES" all loaded up with all my product categories but what I want is a SECOND "categories" but call it "Parts for YOUR bike" or something like that.

 

I'd like to be able to add new "categories" to "Parts for YOUR bike" just like in the origina categories section.

 

That way I can add categories like "Honda / Yamaha / Suzuki / Harley / Victory / etc" under "Parts for your bike" and then add subcategories underneath them like Honda >> Shadow Spirit 750/ Shadow ACE 750 / Shadow ACE 1100 / Magna 750 / etc. Then add subcategories underneath there for bars/headlights/risers/ etc.

 

Any ideas?

 

Thanks,

J.T.

Posted
Have you tried clicking on the New Categories button in admin->Catalog?

 

Jack

 

 

Hey Jack I don't think we are talking about the same thing. I know how to add categories to the existing box.

 

What I want is a totally separate Categories box and list. So that I have two separate categories lists.

 

J.T.

Posted

Anyone else got any help for me? I know some of you guys have to know the answer for this.

 

I spent all night the other night searching the forums for this before I posted but I just couldn't get the magic combination of words into the search box apparently.

 

Thanks.

J.T.

Posted
Hey Jack I don't think we are talking about the same thing. I know how to add categories to the existing box.

 

What I want is a totally separate Categories box and list. So that I have two separate categories lists.

 

J.T.

This is the only thing I can think of to accoumplish this:

- Add the extra categories in admin->catalog

- Duplicate the includes/boxes/categories.php file and name it something else.

- Change the code in both categories boxes to ignore the categories you don't want.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

The contribution linked above is great but semi annoying. Does what you want it to do on the catalog side but not so pretty on the admin side.

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Posted
The contribution linked above is great but semi annoying. Does what you want it to do on the catalog side but not so pretty on the admin side.

 

 

Thanks guys. I'm going to try that contribution and see if I can't get it to do what I want it to.

 

I appreciate all the help.

 

J.T.

Posted

Hello again - I added the "more categories" contribution but uhhh....

 

I can add another categories box now - no problem there - but I can't add any new categories to it. All you can do with this contribution is select from a drop down list the categories that are ALREADY in your other category box. I don't really see the point of this.

 

UNLESS there is a way to add a category (and products) to the normal category box and somehow have it NOT display there and then select it from the drop down in the new category box.

 

 

Can anyone help me with this?

 

Thanks,

J.T.

Posted

again i have not used this contribution but you might have to first create the new categories and then move them to the second box i have looked at a couple of demo sites and they have done that also there is a support forum that you might want to utilize for more informed help

 

i just checked it is supported by the contributor and he already posted a solution

Posted
again i have not used this contribution but you might have to first create the new categories and then move them to the second box i have looked at a couple of demo sites and they have done that also there is a support forum that you might want to utilize for more informed help

 

i just checked it is supported by the contributor and he already posted a solution

 

 

Thanks! I haven't found the support forum for it yet but I did figure it out.

 

The only problem now is that when I enable my second category box - the entire main page area (the middle box) gets shifted all the way down to the bottom of the screen where you really have to look for it. Not good.

Posted

Ok, what you do is this...

 

First box, Name it something then choose the categories you want to show up in there. If you only have 5 but have 20 drop downs just duplicate one of the categories over and over. It will only show up once.

 

Second Box, Name it, then do the same thing. Choose the categories you want to show up in it.

 

You do this for every box. You will no longer have the regular category box so it won't matter if you are picking main categories or sub categories and they can go in any box you want. Do not have to follow any type of order. You can also add the same category to more than one box. (The instructions tell you how to either turn off the regular box or remove the code... I forget which)

 

You create new categories just like you would without the contribution, then seperate them into the different boxes the way you want them to appear.

 

 

As for the center area shifting it sounds like you either have missing table tags or extra table tags somewhere in the right column... which could be any box there. I used the contribution and didn't have that happen so not sure why you would have that issue.

 

I hope that helps.

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Posted

Thanks Wendy!

 

What file should I be looking at to find the missing table tags??

 

Ok, what you do is this...

 

First box, Name it something then choose the categories you want to show up in there. If you only have 5 but have 20 drop downs just duplicate one of the categories over and over. It will only show up once.

 

Second Box, Name it, then do the same thing. Choose the categories you want to show up in it.

 

You do this for every box. You will no longer have the regular category box so it won't matter if you are picking main categories or sub categories and they can go in any box you want. Do not have to follow any type of order. You can also add the same category to more than one box. (The instructions tell you how to either turn off the regular box or remove the code... I forget which)

 

You create new categories just like you would without the contribution, then seperate them into the different boxes the way you want them to appear.

As for the center area shifting it sounds like you either have missing table tags or extra table tags somewhere in the right column... which could be any box there. I used the contribution and didn't have that happen so not sure why you would have that issue.

 

I hope that helps.

Posted

Okay I found my column_left.php file and here's what it has in it :

 

0) { include(DIR_WS_BOXES . 'best_sellers.php'); } else { include(DIR_WS_BOXES . 'product_notifications.php'); } } else { include(DIR_WS_BOXES . 'product_notifications.php'); } } else { include(DIR_WS_BOXES . 'best_sellers.php'); } // STS: ADD $sts_block_name = 'bestsellersbox'; require(STS_RESTART_CAPTURE); // STS: EOADD if (isset($HTTP_GET_VARS['products_id'])) { if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php'); } else { include(DIR_WS_BOXES . 'specials.php'); } // STS: ADD $sts_block_name = 'specialfriendbox'; require(STS_RESTART_CAPTURE); // STS: EOADD if (substr(basename($PHP_SELF), 0, 8) != 'checkout') { include(DIR_WS_BOXES . 'languages.php'); // STS: ADD $sts_block_name = 'languagebox'; require(STS_RESTART_CAPTURE); // STS: EOADD include(DIR_WS_BOXES . 'currencies.php'); // STS: ADD $sts_block_name = 'currenciesbox'; require(STS_RESTART_CAPTURE); // STS: EOADD } ?>

 

See anything wrong??

 

 

Thanks Wendy!

 

What file should I be looking at to find the missing table tags??

Posted

Well, when I said problem with the side, I ment all of the boxes inside of it not just the code for the column.

 

First, is it happening on every page or just the index or one other page in particular? If it is then please paste whichever page it is here.

 

If not, then I would look at all of your pages inside your includes/boxes/ folder and make sure they have a starting <tr><td> and an ending </td></tr>

 

Do you have a link we can look at? May help pinpoint it better. Which version did you get? With or without images? I have only used the one without so maybe the one with is missing something, but not sure.

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Posted

Hello again,

 

It happens all the time when the 2nd or any other box besides box 1 is enabled. Mine is the version with the pictures.

 

Everything is perfect until that 2nd box is enabled.

 

Okay I'll post the link but don't laugh! I am still working on it. I need to make the column on the left a little wider so my category names are in one line of text. It looks horrible right now like it is.

 

http://www.chromewhore.com/shop/

 

As you can see I only have one box enabled because I don't want to lose any business today with it all jacked up.

 

Thanks,

J.T.

 

 

Well, when I said problem with the side, I ment all of the boxes inside of it not just the code for the column.

 

First, is it happening on every page or just the index or one other page in particular? If it is then please paste whichever page it is here.

 

If not, then I would look at all of your pages inside your includes/boxes/ folder and make sure they have a starting <tr><td> and an ending </td></tr>

 

Do you have a link we can look at? May help pinpoint it better. Which version did you get? With or without images? I have only used the one without so maybe the one with is missing something, but not sure.

Posted

Okay I have the 2nd box enabled now. You can see how the center is shifted down. Check it out:

 

www.chromewhore.com/shop

 

I took the pictures out to keep it from looking so bad.

 

Hello again,

 

It happens all the time when the 2nd or any other box besides box 1 is enabled. Mine is the version with the pictures.

 

Everything is perfect until that 2nd box is enabled.

 

Okay I'll post the link but don't laugh! I am still working on it. I need to make the column on the left a little wider so my category names are in one line of text. It looks horrible right now like it is.

 

http://www.chromewhore.com/shop/

 

As you can see I only have one box enabled because I don't want to lose any business today with it all jacked up.

 

Thanks,

J.T.

Posted

It looks like the content of the main page gets placed even with the heading of the 2nd category box every time it's active. What could cause that? Argh.

 

 

 

 

Okay I have the 2nd box enabled now. You can see how the center is shifted down. Check it out:

 

www.chromewhore.com/shop

 

I took the pictures out to keep it from looking so bad.

Posted

Wendy,

 

When I look at my "morecategories.php" file the only <TR> I see is at the very end of the file here :

 

if (isset($_GET['infoBox']) && is_numeric($_GET['infoBox']))

$infoBox = $_GET['infoBox'];

 

for($i=0,$n=count($_infoBox); $i<$n; $i++) {

 

echo "<tr>\n<td>\n";

 

tep_categories_box(

$i,

$_infoBox[$i],

($infoBox == $i && tep_not_null($cPath)) ? true : false,

$cPath_array

);

 

echo "\n</td>\n</tr>\n";

 

}

?>

<!-- categories_eof //-->

 

 

 

Does this all look okay?

 

 

Well, when I said problem with the side, I ment all of the boxes inside of it not just the code for the column.

 

First, is it happening on every page or just the index or one other page in particular? If it is then please paste whichever page it is here.

 

If not, then I would look at all of your pages inside your includes/boxes/ folder and make sure they have a starting <tr><td> and an ending </td></tr>

 

Do you have a link we can look at? May help pinpoint it better. Which version did you get? With or without images? I have only used the one without so maybe the one with is missing something, but not sure.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...