Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Is it possible to feed/stream XML to Oscommerce?


fleeced

Recommended Posts

I've have access to a XML feed that would be great for keeping our prices up to date and maybe adding new products.

 

Is it possible to get XML integrated with OSC, perhaps via Easy populate after the feed has been imported.

 

Thoughts?

Link to comment
Share on other sites

An XML feed does not need Easy Populate, you need a little script that will grab the XML and take the necessary data from it and then do something with that data.  Straightforward enough.

 

However, you need to ensure that the XML feed is mapped to your products in some way, eg:  same ID, same model ... or some other flag, for this to happen.  So, provide a small sample of the XML feed...

Link to comment
Share on other sites

One approach would be to get the XML as a file on your server, run a processor script to convert it to a CSV file, and use the normal Easy Populate add-on to make use of the data. This would eliminate the need to modify Easy Populate to directly use XML input, but check if that might be easier than the conversion.

Link to comment
Share on other sites

So the key would be (eg):

 

 

<pId>FB_CABLE</pId>

 

and the value would be (eg):

 

 

<buynow>2.95</buynow>

 

You now write a little PHP script that iterates thru the XML, matching the key to the products_model (which I presume matches), and update the price (aka value) accordingly.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...