Orphaned Items. Hidden Items?

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
William_firefold
Commander (CMDR)
Commander (CMDR)
Posts: 186
Joined: Fri Aug 01, 2008 8:38 am

Orphaned Items. Hidden Items?

Post by William_firefold » Thu Jul 02, 2009 5:35 am

Sometimes we hide products from public to modify them, but we have so many products that they occasionally get lost in the mix.
There is a admin page in Able for locating orphaned items which have no category attached to them.
How could I modify this page (/Admin/Catalog/OrphanedItems.aspx) so that I have the option to find all hidden or ghosted items?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Orphaned Items. Hidden Items?

Post by mazhar » Thu Jul 02, 2009 8:33 am

You can execute following query get all ghosted products

Code: Select all

SELECT * FROM ac_Products WHERE VisibilityId = 1
or

Code: Select all

ProductCollection ghostedProducts = ProductDataSource.LoadForCriteria(" VisibilityId = 1 ")
A similar code for categories will be required to find out ghosted categories.

Post Reply