Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.

Some products not showing up in store

Started by rivercity on 30 Dec 2013, 3:45 AM · Views: 1,307

Results 1 to 9 of 9
30 Dec 2013, 3:45 AM
#1
rivercity avatar

rivercity

Zen Follower

Join Date:
Jul 2009
Location:
Arkansas
Posts:
178
Plugin Contributions:
0

Post #1 by rivercity

Hello,
If this has been covered could someone send me the link, I caught myself looking but at my age I could have gone right past it.

Using Apsona, I just uploaded one suppliers products to my store, the datafile I copied into Apsona to upload had 3611 items. I didn't receive any errors and everything looked like it went ok. Using Apsona again, I just exported a csv file from my store to check on a couple other things I was working on and got to looking at it and noticed there were only 3429 products from that supplier in the csv file. I'm missing the other 183 that looked like they were uplaoded.

Like I said, I didn't receive any errors while uploading, where would I start looking to try to find out why those 183 didn't upload or at least not showing up?

Thanks for any help,

Jim

Jim Stiles
http://www.missyscollectibles.com
Coming home to Zen Cart!

30 Dec 2013, 2:49 PM
#2
ajeh avatar

ajeh

Oba-san

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

Post #2 by ajeh

Go to phpMyAdmin ...

Browse the table:
products

and ensure that all Product Records contain a:
master_categories_id

that is greater than 0 ...

Check that all Products have a Product Description ... go to phpMyAdmin and run the SQL of:

select p.products_id, p.products_date_added, p.products_last_modified
from products p
left outer join products_description pd on p.products_id = pd.products_id
where pd.products_id is null;

Does anything show up?

Try checking to see if any products_id is missing from the products_to_categories table ...

Go to phpMyAdmin and in the SQL run:

select p.products_id, ptoc.categories_id 
from products p
left outer join products_to_categories ptoc on p.products_id = ptoc.products_id
where ptoc.products_id is null;

Does anything show up?

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!

30 Dec 2013, 6:17 PM
#3
rivercity avatar

rivercity

Zen Follower

Join Date:
Jul 2009
Location:
Arkansas
Posts:
178
Plugin Contributions:
0

Post #3 by rivercity

Hi Linda,

Not being to familiar with running sql stuff, I checked with Hostgator and they told me how to do it but also ran the ones that you suggested and here is the reply they suggested I reply back to you with.

Thanks for your help,
Jim

Their reply:


mysql> select p.zc_products_id, p.zc_products_date_added, p.zc_products_last_modified from zc_products p left outer join zc_products_description pd on p.zc_products_id = pd.zc_products_id where pd.zc_products_id is null;

ERROR 1054 (42S22): Unknown column 'p.zc_products_id' in 'field list'

mysql> select p.zc_products_id, ptoc.zc_categories_id from zc_products p left outer join zc_products_to_categories ptoc on p.zc_products_id = ptoc.zc_products_id where ptoc.zc_products_id is null;

ERROR 1054 (42S22): Unknown column 'p.zc_products_id' in 'field list'

Jim Stiles
http://www.missyscollectibles.com
Coming home to Zen Cart!

30 Dec 2013, 6:35 PM
#4
ajeh avatar

ajeh

Oba-san

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

Post #4 by ajeh

You added too many zc_ ...

Try using:

select p.products_id, p.products_date_added, p.products_last_modified
from zc_products p
left outer join zc_products_description pd on p.products_id = pd.products_id
where pd.products_id is null;
select p.products_id, ptoc.categories_id 
from zc_products p
left outer join zc_products_to_categories ptoc on p.products_id = ptoc.products_id
where ptoc.products_id is null;

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!

30 Dec 2013, 7:22 PM
#5
rivercity avatar

rivercity

Zen Follower

Join Date:
Jul 2009
Location:
Arkansas
Posts:
178
Plugin Contributions:
0

Post #5 by rivercity

I sent Hostgator your previous instructions as it's all still greek to me, their reply is below. Do you think it would correct the situation if I just uploaded a new csv file with these missing items on it and upload them as new and not updated?

Thanks for the help,
Jim

Their reply......

Thank you for your reply. It looks like the query they provided is different from the one before:

select p.zc_products_id, p.zc_products_date_added.....

versus:

select p.products_id, p.products_date_added....

It seems that the tables don't necessarily have zc_ in front of them.

When I ran one of the queries they provided it returns results:
[root@gator2008 /home2/jstiles/public_html]# mysql jstiles_zncr1 -e "select p.products_id, ptoc.categories_id

from zc_products p

left outer join zc_products_to_categories ptoc on p.products_id =
ptoc.products_id

where ptoc.products_id is null;"
Warning: Using unique option prefix pass instead of password is deprecated and will be removed in a future release. Please use the full name instead.
+-------------+---------------+
| products_id | categories_id |
+-------------+---------------+
| 206 | NULL |
| 207 | NULL |
| 208 | NULL |
| 209 | NULL |

....and so on.

Jim Stiles
http://www.missyscollectibles.com
Coming home to Zen Cart!

30 Dec 2013, 7:35 PM
#6
ajeh avatar

ajeh

Oba-san

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

Post #6 by ajeh

I am thinking that you have possibly invalid categories_id in the products_to_categories table as none should be blank, NULL or set to 0 ...

You might try backing up your database and redoing the update from your cvs but I do not use tings to import Products so I really cannot tell you the "best" solution ...

Perhaps contacting Apsona about your issues might be a solution, or posting on the support thread for it ...

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!

30 Dec 2013, 7:40 PM
#7
rivercity avatar

rivercity

Zen Follower

Join Date:
Jul 2009
Location:
Arkansas
Posts:
178
Plugin Contributions:
0

Post #7 by rivercity

Ok, thanks so much for the help, I'll try backing things up and redoing the upload first, if that doesn't work then I'll try to get someone from Apsona.

Thanks again, have a great day.

Jim

Jim Stiles
http://www.missyscollectibles.com
Coming home to Zen Cart!

30 Dec 2013, 8:15 PM
#8
rivercity avatar

rivercity

Zen Follower

Join Date:
Jul 2009
Location:
Arkansas
Posts:
178
Plugin Contributions:
0

Post #8 by rivercity

Is there a fairly uncomplicated way within zencart to delete all current products and empty the store and just start over?

Thanks
Jim

Jim Stiles
http://www.missyscollectibles.com
Coming home to Zen Cart!

30 Dec 2013, 11:02 PM
#9
ajeh avatar

ajeh

Oba-san

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

Post #9 by ajeh

You could try deleting each Category as it would be faster ...

NOTE: You will need to reload your images ...

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!