Import and synchronize Drupal commerce content using Commerce feeds
-
Upload
pedro-cambra -
Category
Technology
-
view
3.617 -
download
0
description
Transcript of Import and synchronize Drupal commerce content using Commerce feeds
Import & synch content with Feeds and ComerceCommerce Drupalcamp, Switzerland 2-3-4, 2011
About me
● Drupal developer at
Commerce Guys● Active member of Spanish
and Catalan Drupal
Community
@pcambra
Pedro Cambra
Feeds module
Feeds is a module that allows to import and synchronize content into Drupal using a pluggable system.
With feeds you can import really diverse sources (XML, RSS, CSV, etc) into nodes, users, terms, etc.
Feeds advantages
● Flexible.● Extendable.● Strong UI.● Periodic imports.● Exportable.
Feeds' components
Feeds splits its functionallity into three basic components:
● Fetcher – Gets the content from the source.● Parser – Parses raw content into arrays.● Processor – Target entities get greated and
field mappings assigned.
Reference: feeds cheatsheet for developers.
Product
(Node)
Order
Line item
Customer profile
Productreference
Price
Line itemreference
Customer profilereference
Payment transaction
Commerce Entities and Fields
Display vs Product
Drupal Commerce introduces a new entity type called Product to store specific product data as SKU, price, etc and links it to Product Displays
which are nodes that are actually displayed to the user.
Commerce Feeds
Commerce Feeds plugs into Feeds module to provide a way to import both products and customer profiles and also provides a mapper for product prices and another for product references.
¡Lets see some examples!
Feeds Tamper
Feeds tamper module provides a plugin for feeds so users and developers can modify data
imported before it gets saved.You can add operations such as replacements,
filters, array explodes/implodes using the UI that feeds tamper provides.
¡Lets see some examples!
Feeds API
Feeds module also provides some tools for developers, you can declare new fetchers or
processors, and also hook before data is saved or parsed using feeds API.
More info at the Developers Guide to Feeds.
Commerce Migrate
Commerce Migrate is a really powerful alternative to the Feeds approach to import data but using Migrate module. It provides all the tools required to import commerce entities and fields and also a submodule for importing Ubercart 6.x or 7.x into Commerce.
Resources
● http://www.drupalcommerce.org● http://www.drupal.org/project/commerce● http://www.drupal.org/project/commerce_kickstart● http://twitter.com/drupalcommerce● http://www.commerceguys.com/resources
Thanks!