Tags/topics: 
3
Answers
Vote up!
0
Vote down!

import feeds data from DC5 server

hi all,

i have a product data from a data collection (dc5) server and want it to be put as a product inside drupal commerce. the data doesn't have the exact named as the needed info. so i need to create a bridge.

but i need to know which table / field the data needs to be in to declare as a product?

or is there is a mentioned tutorial for this kind of things?

tq.

Asked by: Fazrulhafiz
on March 6, 2014

3 Answers

Vote up!
0
Vote down!

Hi, I already solve this.
Although quite orthodox in first glance, it works.
I'll try to clean the code messes first.

Answer by: Fazrulhafiz
Posted: Mar 14, 2014

Comments

Would love it if you could document what you did for others benefit :D

- Josh Miller on March 17, 2014

Thanks,

I plan to but I need to finish up the project first.

- Fazrulhafiz on March 17, 2014
Vote up!
0
Vote down!

Fazrulhafiz,

Lots of ways to bring data into Commerce.

https://drupal.org/project/commerce_feeds

This will work with the Feeds module to bring in content from a specific source (uploaded CSV, RSS feed, etc) on a regular basis and update, add, and generally maintain changes from source to site.

https://drupal.org/project/commerce_migrate

This will work with the Migrate module to help you transform and tweak data and run a "migration" script that is designed more to be run once on a single data set, but can be much more powerful than the Feeds solution if you're comfortable with PHP and Object Oriented programming.

https://drupal.org/project/commerce_services

This will work with the Services module to help you open up an API that lets you do just about anything you could do on the backend of your Commerce store (create orders, create carts, checkout, create customer profiles, etc).

Josh

Josh Miller
Answer by: Josh Miller
Posted: Mar 6, 2014
Vote up!
0
Vote down!

the feed that i'm talking about isn't from a file, it is translated directly from DC5 server using simplexml_load_string(curl_exec (curl_init())). and the xml created from DC5 doesn't have the required xml tag used by the example in commerce feeds.

i've trying to create a module that save the xml tag directly to the commerce db but I dont know which db it involves to make the DC5 item a product.

Answer by: Fazrulhafiz
Posted: Mar 6, 2014