That should be really simple one liner.
Line 1071:
$filestring[] = $tempcsvrow;
Change that to:
$filestring[$row['v_products_model']] = $tempcsvrow;
or
$filestring[$row['v_products_id']] = $tempcsvrow;
If there is a duplicate model or id, it will overwrite the same key instead of adding a new item.
@ini_set('auto_detect_line_endings',true);
or to force it mac:
stream_get_line($fp, 4096, "\r");
I agree, a rewrite is a waste of time until 2.0 comes out, it's going to be significantly different. I only wanted to make changes to the one easypopulate file. A rewrite should split it up into multiple files, or make a class out of it.
2.0 is supposed to come with a db backup system built in, so it probably won't even need easy populate.
Someone might as well change the version number on EP to work with 1.38, there aren't any changes between 1.36 that I've seen that affect it at all.
You're probably right.
I haven't even looked at how ZC does quantity discounts. It's probably stored in a different table. Would need to add a link to a different type of file to download if it's more than one setting per product. If not, it could just be tacked onto the full file at the end like I did with the meta.
That's the file that stores like different color or size options for the products, right? What's broken with it?
Bookmarks