Forums / Setting Up Categories, Products, Attributes / New product added but does not appear in Admin or Cart

New product added but does not appear in Admin or Cart

Views: 813

Results 1 to 5 of 5
26 Sep 2011, 9:40 PM
#1
lisa_in_vermont avatar

lisa_in_vermont

New Zenner

Join Date:
Jul 2007
Posts:
17
Plugin Contributions:
0

New product added but does not appear in Admin or Cart

We have just upgraded to v1.3.9, which we implemented with a clean install. We've tested extensively and the cart is working just fine so far as we can tell.

I have just created a new category and added a new product . I've marked the product In Stock and set a default stock quantity of 999. When I click insert, I am returned to the Categories / Products page for that category, but my product is nowhere to be found and under the ID on the left I see Categories: 0, Products: 0. When I return to Categories / Products - Top, I see an indicator that I have a Linked Product, but I have no way to get to it.

I can see the product in the database table using a MySQL tool. It has no product_id. I can add an ID using the MySQL tool, but it still is not viewable in the admin panel or in my cart. The new category appears in the category table and is viewable/editable from the admin panel.

When I try to add another product with a different product name, I get this error message:

1062 Duplicate entry '0' for key 1
in:
[insert into products (products_quantity, products_type, products_model, products_price, products_date_available, products_weight, products_status, products_virtual, products_tax_class_id, manufacturers_id, products_quantity_order_min, products_quantity_order_units, products_priced_by_attribute, product_is_free, product_is_call, products_quantity_mixed, product_is_always_free_shipping, products_qty_box_status, products_quantity_order_max, products_sort_order, products_discount_type, products_discount_type_from, products_price_sorter, products_image, products_date_added, master_categories_id) values ('999', '1', '', '0', null, '0', '1', '0', '0', '0', '1', '1', '0', '0', '0', '1', '1', '1', '0', '0', '0', '0', '0', '', now(), '8')]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

These products have no attributes assigned (and never have); only price.

26 Sep 2011, 9:48 PM
#2
armanrivard avatar

armanrivard

New Zenner

Join Date:
Sep 2011
Posts:
7
Plugin Contributions:
0

Re: New product added but does not appear in Admin or Cart

I had lots of these issues. Check your PHP version.

26 Sep 2011, 9:53 PM
#3
ajeh avatar

ajeh

Oba-san

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

Re: New product added but does not appear in Admin or Cart

Check the following:

Do you have a Product in the tables:
products
products_description
products_to_categories

Does the Product in the table:
products

have a master_categories_id set?

If you add a products_id in the products table, make sure you have it in the products_description with the same products_id ...

Make sure you have a record in the products_to_categories table with the same products_id and a valid categories_id and that categories_id would be the master_categories_id in the products table ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

27 Sep 2011, 12:46 AM
#4
lisa_in_vermont avatar

lisa_in_vermont

New Zenner

Join Date:
Jul 2007
Posts:
17
Plugin Contributions:
0

Re: New product added but does not appear in Admin or Cart

:clap::clap::clap:
Thank you, Ajeh. That did it. I've built several ZenCarts and have only posted rarely because your answers in the Forums (Fora?) are so helpful.

27 Sep 2011, 12:48 AM
#5
ajeh avatar

ajeh

Oba-san

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

Re: New product added but does not appear in Admin or Cart

You are most welcome ... thanks for the update that this helped straighten things out ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!