Post by gladiator » Sat Feb 13, 2010 12:31 am

Is there a simple solution to finding items that may not be linked to a category?

I have reason to believe that there are products I have on my website that are not linked to a category therefore not showing up on the website at all for sale.

I would like to find those and attach those to their appropriate categories so they show up for sale...

http://www.gladiatorlighting.com


User avatar
New member

Posts

Joined
Wed Aug 12, 2009 1:26 pm

Post by Miguelito » Mon Feb 15, 2010 5:18 pm

Perhaps the easiest way is to search through database with this sql:

select product_id, name
from product_description
where product_id not in (select product_id from product_to_category);

So in product_to_category table there's the actual link between product and category :)

The Finnish OpenCart Forum
"Real programmers don't document. If it was hard to write, it should be hard to understand."


Active Member

Posts

Joined
Sun Jan 10, 2010 10:11 pm
Who is online

Users browsing this forum: Amazon [Bot] and 36 guests