ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Synchronizing an external database with a specific weblog/channel in EE

August 31, 2010 3:13pm

Subscribe [2]
  • #1 / Aug 31, 2010 3:13pm

    John St-Amand

    865 posts

    Hi all - looking for some advice on synchronizing an external database with a weblog/channel in EE - hopefully someone out in the EE community has done something like this before.  Here’s the scenario:

    I’m building a site in EE 1.6.9 using the current release of CartThrob for the products section.  The beauty of that, of course, is that really my question is still and EE question, since CartThrob just allows me to create a products weblog and then tacks its functionality on top of that.

    So I have my products weblog fields established.  This client has two physical stores through which he sells the same set of products (though the EE implementation is not expected to have every SKU at the start).  His two retail stores use a web-enabled point of sale system that records sales so that both stores may draw from the same inventory. This web module will allow for a daily scheduled task (daily) of an export of a text/csv file that includes all the pertinent fields that I have matched up in EE - item number, short description, price, subcategory (categories are one product, to one subcategory), attribute 1, attribute 2, etc. and inventory remaining.  It also similarly performs an export of the category structure.  They can also set it to automatically FTP the files to a given destination.

    My question is this - is what I need an API that can read this CSV file synchronize it with EE, updating changed entries, adding new entries and deleting (and or changing a status) of a removed entry?  Is that a difficult or simple task?  We just want to ensure that his website is an accurate reflection of what it actually sold and in-stock and we need to treat the website as a slave to the master inventory in his centralized point of sale system.

    Thanks all!

    John

  • #2 / Sep 01, 2010 1:55pm

    e-man

    1816 posts

    If this for EE1 have a look at
    http://brandnewbox.co.uk/products/details/csvgrab

  • #3 / Sep 01, 2010 4:44pm

    John St-Amand

    865 posts

    Thanks, e-man.  This appears to do some of what I’m looking for, but not all of it.  I’m going to contact its developer thought to see if more functionality could be added to it such that it would perform the way I’m needing.  It’s a start anyway.

    If anyone else has experience getting EE to synchronize with an external file, please fill me in.  I’m sure it can be done - Solspace had a plugin that would synch your membership list with the subscribers in your Constant Contact account - same sort of thing really.

    Anyone?

  • #4 / Sep 01, 2010 4:52pm

    John St-Amand

    865 posts

    JUst found DataGRab by the same developer and it seems much closer to what I’m looking for already, though it’s for EE2 and I’m in EE1 with the site I’m working on right now because of the need for CartThrob for the product sales side of things.  So I’ve send him an email asking if there’s an EE1 version.  Fingers crossed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases