You are here:  » Remove products without images

Support Forum



Remove products without images

Submitted by cq on Mon, 2007-12-03 16:45 in

Hello David,

How can i removed products feed without images.

thanks
jack

Submitted by support on Mon, 2007-12-03 16:55

Hello Jack,

Do you want remove entire feeds from your site; or do you only want to import products that have images?

If you want to restrict importing to products that have images, you need to modify includes/admin.php. Look for the following code starting at line 155:

    /* check product record for minimum required fields */
    if (!$record[$admin_importFeed["field_name"]] || !$record[$admin_importFeed["field_buy_url"]] || !$record[$admin_importFeed["field_price"]]) return;

...and change this to:

    /* check product record for minimum required fields */
    if (!$record[$admin_importFeed["field_image_url"]] || !$record[$admin_importFeed["field_name"]] || !$record[$admin_importFeed["field_buy_url"]] || !$record[$admin_importFeed["field_price"]]) return;

That will make images mandatory...

Cheers,
David.

Submitted by cq on Mon, 2007-12-03 17:34

Hi David,

thanks. how can i remove entire feeds from the site.

jack

Submitted by support on Mon, 2007-12-03 17:39

Hello Jack,

To remove an entire feed, simply delete it from your /feeds/ directory, and then go to your admin page where you will see the "De-register" link alongside the old filename. This will remove all the products from that feed from the database...

Cheers,
David.

Submitted by cq on Mon, 2007-12-03 17:44

thank you david