Skip to content

Instantly share code, notes, and snippets.

@mbeall
Created March 10, 2014 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbeall/9469360 to your computer and use it in GitHub Desktop.
Save mbeall/9469360 to your computer and use it in GitHub Desktop.
Transferring products from Sparks Store to Steel Marketplace

Transferring products from Sparks Store to Steel Marketplace

The easiest way to do this is to setup a temporary WordPress installation (remote, not local). This ensures all media is attached. If you are unable to setup a temporary remote WordPress installation, see the "Alternative Process" section.

Process Overview

  1. Export "All Content" using WordPress tool from main site.
  2. Open the downloaded xml file.
  3. Edit the xml file according the instructions in the next section, "Edit the XML."
  4. Make sure the Steel plugin is activated and the Marketplace module is activated on the temporary site.
  5. Import "All Content" using WordPress tool into temporary WordPress installation. Make sure to check the "Import media attachments" checkbox.
  6. Delete all content from main site (not temporary site), which includes pages, posts, media, products, menus (under Appearance->Menu), etc.
  7. Export "All Content" using WordPress tool from temporary site.
  8. Make sure the Steel plugin is activated and the Marketplace module is activated on the main site.
  9. Import "All Content" using WordPress tool into main site. Make sure to check the "Import media attachments" checkbox.

Edit the XML

  1. Find all instances of <wp:term_taxonomy>keyword</wp:term_taxonomy> and replace with <wp:term_taxonomy>post_tag</wp:term_taxonomy>.
  2. Find all instances of domain="keyword" and replace with domain="post_tag".
  3. Find all instances of <wp:term_taxonomy>department</wp:term_taxonomy> and replace with <wp:term_taxonomy>steel_product_category</wp:term_taxonomy>.
  4. Find all instances of domain="department" and replace with domain="steel_product_category".
  5. Find all instances of <wp:meta_value><![CDATA[department]]></wp:meta_value> and replace with <wp:meta_value><![CDATA[steel_product_category]]></wp:meta_value>.
  6. Find all instances of sp_product and replace with steel_product.
  7. Find all instances of <wp:meta_key>item_ref</wp:meta_key> and replace with <wp:meta_key>product_ref</wp:meta_key>.
  8. Find all instances of <wp:meta_key>item_price</wp:meta_key> and replace with <wp:meta_key>product_price</wp:meta_key>.
  9. Find all instances of <wp:meta_key>item_shipping</wp:meta_key> and replace with <wp:meta_key>product_shipping</wp:meta_key>.
  10. Find all instances of <wp:meta_key>item_width</wp:meta_key> and replace with <wp:meta_key>product_width</wp:meta_key>.
  11. Find all instances of <wp:meta_key>item_height</wp:meta_key> and replace with <wp:meta_key>product_height</wp:meta_key>.
  12. Find all instances of <wp:meta_key>item_depth</wp:meta_key> and replace with <wp:meta_key>product_depth</wp:meta_key>.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment