Import and synchronize Drupal commerce content using Commerce feeds

15
Import & synch content with Feeds and Comerce Commerce Drupalcamp, Switzerland 2-3-4, 2011

description

Use of commerce feeds module to import products and profiles into drupal commerce

Transcript of Import and synchronize Drupal commerce content using Commerce feeds

Page 1: Import and synchronize Drupal commerce content using Commerce feeds

Import & synch content with Feeds and ComerceCommerce Drupalcamp, Switzerland 2-3-4, 2011

Page 2: Import and synchronize Drupal commerce content using Commerce feeds

About me

● Drupal developer at

Commerce Guys● Active member of Spanish

and Catalan Drupal

Community

@pcambra

Pedro Cambra

Page 3: Import and synchronize Drupal commerce content using Commerce feeds

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.

Page 4: Import and synchronize Drupal commerce content using Commerce feeds

Feeds advantages

● Flexible.● Extendable.● Strong UI.● Periodic imports.● Exportable.

Page 5: Import and synchronize Drupal commerce content using Commerce feeds

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.

Page 6: Import and synchronize Drupal commerce content using Commerce feeds

Product

(Node)

Order

Line item

Customer profile

Productreference

Price

Line itemreference

Customer profilereference

Payment transaction

Commerce Entities and Fields

Page 7: Import and synchronize Drupal commerce content using Commerce feeds

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.

Page 8: Import and synchronize Drupal commerce content using Commerce feeds

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.

Page 9: Import and synchronize Drupal commerce content using Commerce feeds

¡Lets see some examples!

Page 10: Import and synchronize Drupal commerce content using Commerce feeds

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.

Page 11: Import and synchronize Drupal commerce content using Commerce feeds

¡Lets see some examples!

Page 12: Import and synchronize Drupal commerce content using Commerce feeds

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.

Page 13: Import and synchronize Drupal commerce content using Commerce 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.

Page 14: Import and synchronize Drupal commerce content using Commerce feeds

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

Page 15: Import and synchronize Drupal commerce content using Commerce feeds

Thanks!