nagelkruid:
Last thing i need is a check if a product_id allready exists in the array and if it does, do not add it again. (this is because i have some products copied over different categories and i only want those once in the output)
I think i need to do something around line 762 while($row=) but i am really at loss :)
any ideas?
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.
chadderuski:
phazei,
- I imagine the EOREOR was a "simple" way to handle cross platform issues with reading end of line.
@ini_set('auto_detect_line_endings',true);
or to force it mac:
stream_get_line($fp, 4096, "\r");
chadderuski:
phazei,
2) Concerning old mods: My philosophy is more aggressive concerning a re-write. (I don't even think Linda's header thing exits anymore... from like zen 1.2..???) There are so many mods out there that it would be better to have a stable non-beta version that works with a default 1.38 install. Once that's done, you can go back and add functionality. It will also make porting to zen 2.0 easier since there are significant changes coming.
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.
chadderuski:
- I would like to suggest a NEW thread for you CSV version. There are still many people using 1.2.5.4 and this is where they go for support. You're CSV version will only add to the confusion with the OSC ports, advanced ver, working and non-working free versions!
You're probably right.
chadderuski:
- To my knowledge no one has ever posted code that allows you to update quantity discounts with EP (not even the advanced paid version, though langer had talked about adding it), so quantity discounts is my baby (although it was a simple solution when I finally sat down to do it).
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.
chadderuski:
- Fixing product attributes is more important than other mods, but fixing this once 2.0 may be a more constructive use of time.
That's the file that stores like different color or size options for the products, right? What's broken with it?