Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Can add categories but not products

Can add categories but not products

Locked

Views: 2,334

Results 1 to 18 of 18
This thread is locked. New replies are disabled.
4 Mar 2007, 5:11 PM
#1
leehopkins avatar

leehopkins

New Zenner

Join Date:
Mar 2007
Location:
Adelaide, Australia
Posts:
9
Plugin Contributions:
0

Can add categories but not products

G'day,
Just installed zencart and have been impressed by its features and ease of administration.

However I have come unstuck.

I created four main categories for my client (a bookshop): business, food & wine, pets and self-help and within some of these some sub-categories and even sub-sub categories. No problems there and very easy and intuitive to do.

I then went back to my top level, selected the 'business' category and went to add a product - I got a 404 error message (page not found). No matter what category (or sub-category) I tried, I kept getting the same 404 error.

I can add categories to my heart's content, but not products. Anyone got any clues as to what I can do?

Cheers,
Lee :blink:

4 Mar 2007, 5:18 PM
#2
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: Can add categories but not products

You are aware that you can only add EITHER categories or products to a category, not a mix?

I don't know if that IS the problem, but it's worth covering the obvious first.

4 Mar 2007, 5:26 PM
#3
leehopkins avatar

leehopkins

New Zenner

Join Date:
Mar 2007
Location:
Adelaide, Australia
Posts:
9
Plugin Contributions:
0

Re: Can add categories but not products

G'day Ryk,

Thanks for the prompt response.

Yes, I was aware of that, but thanks for making me check the obvious!

Where there are sub-cats I realise I cannot add products. But where there are no sub-cats (or the chain of sub-cats ends) I cannot add products.

On those pages I have both a 'new category' and a 'new product' button. So I click on the 'new product' button and get a 404... Clicking on the 'new category' button opens up the new category input page.

Baffling!

One thing to note -- before trying to add products (during my initial configuring [read 'playing']) I edited all of the product types in the 'product types' screen. Do the 'handler' pages need to be in a certain formatting style (e.g. prefixed with an underline?)

Lee

4 Mar 2007, 6:07 PM
#4
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: Can add categories but not products

If you were only "playing" within the admin settings, then it shouldn't have caused that sort of problem.

As for what IS causing the problem - I'm afraid you'll have to wait for someone who knows more than me about the technicalities! Sorry.

4 Mar 2007, 6:13 PM
#5
leehopkins avatar

leehopkins

New Zenner

Join Date:
Mar 2007
Location:
Adelaide, Australia
Posts:
9
Plugin Contributions:
0

Re: Can add categories but not products

No worries - thanks for trying, Ryk!

4 Mar 2007, 6:16 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Can add categories but not products

Next to the New Product button ... do you see a dropdown with the 5 Product Types?

4 Mar 2007, 6:19 PM
#7
leehopkins avatar

leehopkins

New Zenner

Join Date:
Mar 2007
Location:
Adelaide, Australia
Posts:
9
Plugin Contributions:
0

Re: Can add categories but not products

yes -- they are the product types I edited from the default to the following:
book, dvd, multimedia, giftwrap, free shipping

Lee

4 Mar 2007, 6:22 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Can add categories but not products

When you say you edited them ...

What did you change?

Those names build the filenames used to add products ...

4 Mar 2007, 6:25 PM
#9
ajeh avatar

ajeh

Oba-san

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

Re: Can add categories but not products

The defaults in the products_types table are:

type_id type_name type_handler type_master_type allow_add_to_cart
1 Product - General product 1 Y
2 Product - Music product_music 1 Y
3 Document - General document_general 3 N
4 Document - Product document_product 3 Y
5 Product - Free Shipping product_free_shipping 1 Y

4 Mar 2007, 6:30 PM
#10
leehopkins avatar

leehopkins

New Zenner

Join Date:
Mar 2007
Location:
Adelaide, Australia
Posts:
9
Plugin Contributions:
0

Re: Can add categories but not products

I changed the first Product Type Name to 'Book', changed the Handler Page to 'book', kept the tick for the 'This product type can be added to the cart' and noticed when re-opening the edit screen that 'This product type should be considered a sub-type of' dropdown had changed from whatever it originally was to 'Book'

4 Mar 2007, 6:31 PM
#11
ajeh avatar

ajeh

Oba-san

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

Re: Can add categories but not products

Did you then go make the files and directories required to get everything working in the Admin and all of the files and templates in the shop to match the new name?

4 Mar 2007, 6:32 PM
#12
leehopkins avatar

leehopkins

New Zenner

Join Date:
Mar 2007
Location:
Adelaide, Australia
Posts:
9
Plugin Contributions:
0

Re: Can add categories but not products

You solved it!!! THANKS!!!

4 Mar 2007, 6:33 PM
#13
leehopkins avatar

leehopkins

New Zenner

Join Date:
Mar 2007
Location:
Adelaide, Australia
Posts:
9
Plugin Contributions:
0

Re: Can add categories but not products

I promise I won't play around with stuff before RTFM again!! [grin]

4 Mar 2007, 6:41 PM
#14
ajeh avatar

ajeh

Oba-san

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

Re: Can add categories but not products

Thanks for the update and glad you were able to fix this up ... :smile:

Note: you can always build more Product Types but there is a bit of work involved to make them ... other than changing the names ... :lamo:

4 Mar 2007, 6:54 PM
#15
leehopkins avatar

leehopkins

New Zenner

Join Date:
Mar 2007
Location:
Adelaide, Australia
Posts:
9
Plugin Contributions:
0

Re: Can add categories but not products

Thanks for that!

Quick question: is there a way to have a newsletter for different categories, rather than just one newsletter for everyone?

4 Mar 2007, 7:19 PM
#16
ajeh avatar

ajeh

Oba-san

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

Re: Can add categories but not products

You would need to customize your code to manage the separation ... this is not built into Zen Cart at this time ...

4 Mar 2007, 7:22 PM
#17
leehopkins avatar

leehopkins

New Zenner

Join Date:
Mar 2007
Location:
Adelaide, Australia
Posts:
9
Plugin Contributions:
0

Re: Can add categories but not products

ok, thanks...

In which case... [totally unrelated] how do I change the product price that is displayed from the pre-tax amount to the including-tax amount?

4 Mar 2007, 7:31 PM
#18
ajeh avatar

ajeh

Oba-san

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

Re: Can add categories but not products

This would be best on its own thread ...

Where do you mean in the Catalog?

There are settings for Display Price with Tax in the Configuration menu ...