
Originally Posted by
flatlanderoutfitters
I would like to put in for two requests for a new version, and for now, some advice on how to get done what I want to do (Hacking EP to make it work like I want)
First off, reading the code, it looks like it would be fairly easy to add a feature where users can customize a "map" so they can upload a spreadsheet from a supplier's inventory list (without it needing to be zencart compatible) and the headings from that .csv would be "mapped" to the correct fields (I.E. ProdImage => v_products_image )
That way in admin user can set up their own mapping for the data files they wish to upload (or even better a simple point and click interface)
for example, have an area (probably in config) that users can upload a truncated spreadsheet (headings plus 1 row of data) and the code would parse it and display it in a couple of rows, with the required rows for easypopulate below or above , and take the number value from easypopulate fields and enter it to the new spreadsheet rows , indicating which column matches which (it's easier to visualize than to explain) and when everything is set, save the values, with a name they choose - and use that map to parse data from the user's uploads, and they could select the "format name" from a drop down list , default easypopulate .. and easypopulate could simply use that "map info" to parse the given spreadsheet and match it up with what's required.
it would save a massive amount of time. (I'm currently digging around in the code to figure out how to make this happen to direct upload a Doba spreadsheet without altering it)
and Secondly, add a couple of fields to easypopulate for "cost" and "markup" so the user could also include their cost price of the item and customize the markup % , rather than having to figure it for each item, or use the list price. - even better, make it so that markups can be calculated based on a formula set in config (I.E. < $10, markup 40% , $10.01 - $100 markup 30%, $100.01+ , markup 20%) - (I actually have a script that I run commandline right now to parse a "updates" file from supplier with quantity,price,available date, minimum advertised price, and list price, on which I do that sort of operation - but it would be nice to be able to simply upload a fresh spreadsheet with updated data and letting easypopulate calculate the price according to formula)
Now, as for the above two features, I am going to be developing this for myself and a client as well (and probably others that will also want this feature, once they find out about it) an I would like some advice from developers on where the important stuff of the code is- namely - which file and where is the parsing done that reads in the easypopulate csv file and pushes it into the database - and also where is the actual updates to database being done.
It'd help immensely in reading unfamiliar code..
Bookmarks