When importing everything goes well. But the module does not set the NID.

Comments

harings_rob’s picture

Status: Needs work » Needs review

Maybe if we could run the following code after the import is done:

    $result = db_query("SELECT nid, model FROM {uc_products}");
    while ($row = db_fetch_object($result)) {
        $query = db_query("UPDATE {uc_product_stock} SET nid = '%s' WHERE sku = '%s'", $row->nid, $row->model);
    }

This just updates the NID for each product