You are here:  » dupehash


dupehash

Submitted by searley on Sat, 2006-04-08 07:50 in

what fields does dupehash work on??

Submitted by support on Sat, 2006-04-08 11:18

Hiya,

dupehash is constructed in includes/admin.php, starting at line 235:

    /* create dupe_hash value */
    $dupe_key = $admin_importFeed["merchant"];
    $dupe_key .= $record[$admin_importFeed["field_name"]];
    // $dupe_key .= $record[$admin_importFeed["field_description"]];
    // $dupe_key .= $record[$admin_importFeed["field_image_url"]];
    // $dupe_key .= $record[$admin_importFeed["field_buy_url"]];
    // $dupe_key .= $record[$admin_importFeed["field_price"]];
    $dupe_hash = md5($dupe_key);

By default, it is just working on merchant + product name. If you want to bring more fields into the test just uncomment the lines that append the field you wish to use to $dupe_key. I would not recommend using the product description field as this may slow down the import process considerably.

Submitted by searley on Sat, 2006-04-08 12:17

excellent, i just wanted to add rice aswell, as i have some multi-merchant feeds which contain the same products at differing prices