Zen Cart Logo
Forums / General Questions / How to add product to subcategory

How to add product to subcategory

Views: 1,512

Results 1 to 20 of 21
9 May 2016, 1:41 PM
#1
lala29 avatar

lala29

New Zenner

Join Date:
May 2016
Posts:
8
Plugin Contributions:
0

How to add product to subcategory

Hello everyone,
My question is very basic, but I cant seem to figure it out. The website has been up for a couple of years now and I just recently started managing it. I'm trying to create a subcategory within a subcategory and add products. I am able to do so but when I go live on the website, I don't see either the subcategory or the products I added into it.
What am I doing wrong? am I missing any step?
I've added products to subcategories that the person who managed this website before created, but when I go and create a new subcategory and add products to it, Im not able to see them.
Please help!!
Thank you in advance:smile:
I'm using version v1.3.9h

9 May 2016, 11:17 PM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: How to add product to subcategory

Lala29,

First off - Welcome to the community...

Can you provide a bit of additional ionformation
in your admin > tools > server/version info >

Post here your PHP ver, your mysql ver

Now on to what I believer is your issue
When you created your sub-sub-cat - were there any products existing at that level??

cat - 
sub-cat
products
sub-sub-cat

or was it

cat - 
sub-cat
sub-sub-cat 
news products
10 May 2016, 1:11 PM
#4
lala29 avatar

lala29

New Zenner

Join Date:
May 2016
Posts:
8
Plugin Contributions:
0

Re: How to add product to subcategory

Hi Kobra,
Thank you so much for your reply.
PHP Version: 5.3.5 (Zend: 2.3.0)
Database: MySQL 5.1.54
I really dont know much about code. I'm attaching a screen shot, maybe that way I can explain it better.
As you can see in the image, the category name is "Music" then a sub-category "Instrumental" and then another sub-cat "Band Arrangements". The "American Band Journal", "A.I.E.S" and the "Brass Music for Young Bands" subcategories were already created by the previous site manager. Each of these have products in it. I created the "American Festival Series" and then I went into it and added a product. When I go and check the website, neither the subcategory "American Festival Series" is there nor the product I added. I never got a warning sign or anything so I thought it should work. If I try to add a product to any subcategory the previous person created, it works fine.
I hope my explanation was clear. Please let me know if you need more information.
Thank you so much for your help!
Attachment 16294

10 May 2016, 1:39 PM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: How to add product to subcategory

Does this new product have stock??
Or is the stock "0"

Post your site also - you can post it like this to prevent google from picking it up
zen-cart dot com

10 May 2016, 1:49 PM
#6
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: How to add product to subcategory

At the time of the picture the product was active, which is presumably after the category and product was added and an attempt was made to access it on the store side.

One observable difference is related to the sort order of the new category. The others have something on the order of 2000200000 and have variations assigned which probably mean something on the template side. Suggest making the new category have a sort order first equivalent to one of the others, then possibly slightly higher than that one.

10 May 2016, 3:37 PM
#7
lala29 avatar

lala29

New Zenner

Join Date:
May 2016
Posts:
8
Plugin Contributions:
0

Re: How to add product to subcategory

We do have stock of the product. I didnt enter a sort number for that subcategory. The website is store.salvationarmy.ca
I tried creating a new subcategory, this time adding a sort number and still it didnt work.

10 May 2016, 3:41 PM
#8
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: How to add product to subcategory

Lala29:

We do have stock of the product. I didnt enter a sort number for that subcategory. The website is store.salvationarmy.ca
I tried creating a new subcategory, this time adding a sort number and still it didnt work.

What sort number was tried?

10 May 2016, 3:43 PM
#9
lala29 avatar

lala29

New Zenner

Join Date:
May 2016
Posts:
8
Plugin Contributions:
0

Re: How to add product to subcategory

Hi mc12345678,
I tried creating a new subcategory with a higher sort number (2016000000)...but it didnt work.
In the first image you can see it now has a sort number. The 2nd image you can see at the bottom it says "Note: Category has subcategories. Products cannot be added" Why is that? :'(
Any help will be greatly appreciated!
Attachment 16297Attachment 16298

10 May 2016, 3:43 PM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: How to add product to subcategory

I am seeing your new product here is the bread crumb path

Home ::  Music ::  Instrumental ::  Band Arrangements ::  American Festival Series ::  Nos. 1-4 

You might be with an ISP that caches content and might have to wait to see these on the front end
You can use a free proxy to view your front end as other might see it - one like
https://www.hidemyass.com/proxy

The 2nd image you can see at the bottom it says "Note: Category has subcategories. Products cannot be added" Why is that?
Categories can have sub-cats and sub-sub-cats or products but not both

10 May 2016, 4:03 PM
#11
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: How to add product to subcategory

I noticed that your new sub cat & product are not showing in your drop down menu
If you select Music :: Instrumental :: Band Arrangements - you will see your new entry
There might be a limitation or setting for your drop down menu in the admin - not sure

10 May 2016, 4:11 PM
#12
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: How to add product to subcategory

Yeah, seeing the category as listed:

http://store.salvationarmy.ca/index.php?main_page=index&cPath=281

But didn't see it in the dropdown list. Not sure if there is some hard coding to get you the existing list(s). There are tools in the admin that can be used to search for related text. (developers toolkit)

10 May 2016, 4:15 PM
#13
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: How to add product to subcategory

mc12345678,

Looking at the source they are using a drop menu plugin - I do not know what the limitations are though??

<div id="dropMenuWrapper">
  <div id="dropMenu">
    <ul class="level1">
      <li class="submenu">
        <ul class="level2">
10 May 2016, 5:47 PM
#14
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: How to add product to subcategory

Not seeing it on the site_map either. :/

11 May 2016, 1:05 PM
#15
lala29 avatar

lala29

New Zenner

Join Date:
May 2016
Posts:
8
Plugin Contributions:
0

Re: How to add product to subcategory

Kobra, mc12345678
Thank you so much for your help!
I guess the problem is in the settings on the drop down menu. I'll have a look at admin tools and see if I can find it.
Thanks again!

11 May 2016, 1:18 PM
#16
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: How to add product to subcategory

I'll have a look at admin tools
It might be in admin > config

11 May 2016, 2:54 PM
#17
lala29 avatar

lala29

New Zenner

Join Date:
May 2016
Posts:
8
Plugin Contributions:
0

Re: How to add product to subcategory

So I added one product to the American Festival Series (not visible on the drop down menu). If I go Music :: Instrumental :: Band Arrangements Im able to see the subcategory, I then click on it and I'm able to see the product I added. But then I added another product and when I go live, it says "There are no products to list in this category."
Attachment 16303

11 May 2016, 3:12 PM
#18
lala29 avatar

lala29

New Zenner

Join Date:
May 2016
Posts:
8
Plugin Contributions:
0

Re: How to add product to subcategory

I fixed it. I needed a piece of code on the description of that subcategory

11 May 2016, 4:22 PM
#19
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: How to add product to subcategory

Lala29:

I fixed it. I needed a piece of code on the description of that subcategory
Did that resolve both issues or just one? (please identify) and what was the "code"?

12 May 2016, 1:28 PM
#20
lala29 avatar

lala29

New Zenner

Join Date:
May 2016
Posts:
8
Plugin Contributions:
0

Re: How to add product to subcategory

Both problems. I copied this line "<!--istore-store-->" of code prom another subcategory description and pasted into the one I created and it worked. I don't really know what that line means :P