Zen Cart Logo
Forums / General Questions / a subcategory question

a subcategory question

Locked

Views: 957

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
20 Oct 2010, 11:27 AM
#1
blackwingedangel avatar

blackwingedangel

New Zenner

Join Date:
Oct 2010
Posts:
15
Plugin Contributions:
0

a subcategory question

Hello Zenners,

My questions is: is it possible (or there's a way) to add sub categories in a category that is already holding products???. I already know the procedure of adding products in categories but i seem can't find my way in adding subs in above situation. :lamo:

-ZenCart version 1.3.9f, "no url yet project located at localhost"-

Thanks in advance...
BLACKWINGEDANGEL

20 Oct 2010, 12:19 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: a subcategory question

You can have subcategories or products in a category, but not both. While it is possible to force both, it usually causes some wacky things to happen in the product listing.

20 Oct 2010, 12:27 PM
#3
blackwingedangel avatar

blackwingedangel

New Zenner

Join Date:
Oct 2010
Posts:
15
Plugin Contributions:
0

Re: a subcategory question

Wow thanks stevesh, i really like the support in here everyone is always willing to lend a hand. HHHHMMM that would be bad ain't it???, but I still want to know how can you do that forceful way...

Thanks :D

20 Oct 2010, 2:14 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: a subcategory question

Make a Category and then Move the Category into the Category with Products ...

NOTE: as stevesh has indicated, you really will wack out the functionality of the Category/Products by doing this and you really do not want to do this and we strongly recommend you never do this ...

NOTE: the only reason to every really do this is for a temporary thing where you just want to move some Products in the Category with Products into the new Category and then immediately move the New Category to a proper location in the Category Tree ...

NOTE: Do not do this ... you only think you want to do this ... you will create a nightmare by doing this ...

20 Oct 2010, 2:40 PM
#5
blackwingedangel avatar

blackwingedangel

New Zenner

Join Date:
Oct 2010
Posts:
15
Plugin Contributions:
0

Re: a subcategory question

Thanks Ajeh, been really wanting to get your attention since I first came here because I have a lot of questions. Never mind my remarks above i really just want to see and experiment of how it would look.

Anyway instead of doing that, I created an html thread to hold images and text and insert it in the decription box of the parent category (thru edit category). Now my new question is how to insert the php code for left sidebox in that same file. I already did it but it doesnt seem to work, maybe php cant be read thru there??? heres the thread:

Please Choose A Clothing Category:

<div id="pagecontent"> <div class="sideboxes"><div id="navColumnOneWrapper" style="width: <?php echo BOX_WIDTH_LEFT; ?>"><?php require(DIR_WS_MODULES . zen_get_module_directory('column_left.php')); ?></div></div> <div class="maincontent"> <table width="100%" border="0" cellspacing="20" cellpadding="20" > <tr> <td><a href="http://localhost/online/shopping/zen-cart-v1.3.9f-full-fileset-08142010/index.php?main_page=index&cPath=16_17"><img src="images/clothing/Pency_03_LRG.jpg" border="none" alt="" /><br /><h2>Day Dresses</h2></a></td><td><a href="http://localhost/online/shopping/zen-cart-v1.3.9f-full-fileset-08142010/index.php?main_page=index&cPath=16_19"><img src="images/clothing/Sass_Bide.jpg" border="none" alt="" /><br /><h2>Coctail Dresses</h2></a></td><td><a href="http://localhost/online/shopping/zen-cart-v1.3.9f-full-fileset-08142010/index.php?main_page=index&cPath=16_20"><img src="images/clothing/ksubi_04_LRG.jpg" border="none" alt="" /><br /><h2>Tees</h2></a></td> </tr> <tr> <td><a href="http://localhost/online/shopping/zen-cart-v1.3.9f-full-fileset-08142010/index.php?main_page=index&cPath=16_21"><img src="images/clothing/Sass_Bide_02_LRG.jpg" border="none" alt="" /><br /><h2>Tops</h2></a></td><td><a href="#"><img src="images/clothing/Manning_Cartel.jpg" border="none" alt="" /><br /><h2>Skirts</h2></a></td><td><a href="#"><img src="images/clothing/ksubi_04_LRG.jpg" border="none" alt="" /><br /><h2>Tees</h2></a></td> </tr> </table>

CSS for that is located in my override folder and there is nothing wrong with because the page is opening just fine (online the left sidebox column is not showing up), and I have successfully used that thread in making an override tpl_tabular_dispaly.php to match my design.

Thanks in advance.....

BLACKWINGEDANGEL

20 Oct 2010, 3:03 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: a subcategory question

Have you looked at EZ-Pages?

That would let you define more pages within your shop ...

20 Oct 2010, 3:19 PM
#7
blackwingedangel avatar

blackwingedangel

New Zenner

Join Date:
Oct 2010
Posts:
15
Plugin Contributions:
0

Re: a subcategory question

HHHMMM I have not tried to use EZ Pages yet to be honest, since I am new, I am still exploring the possibilities doing around works by not creating a page either manually or thru EZ Pages. Anyway the pages in my custom menu, is the parent category of their corresponding subcat(s). So instead of creating a new page, I'm trying to see the possibility of just inserting threads and codes thru description of parent category.

So what do you thik PHP codes can't be read in there???

Thanks

20 Oct 2010, 3:35 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: a subcategory question

Creating an HTML page to interact with your php code is a problem as you will lose session relations ...

The EZ-Pages let you create new pages that interact with your site properly ...

You will want to use proper references on your links so instead of absolute references you use relative references ...

20 Oct 2010, 3:49 PM
#9
blackwingedangel avatar

blackwingedangel

New Zenner

Join Date:
Oct 2010
Posts:
15
Plugin Contributions:
0

Re: a subcategory question

Yeah I guess, that's the right approach...

Thanks a bunch for the enlightenment :bigups: