Skip to content

Instantly share code, notes, and snippets.

@stefanolsen
Last active November 26, 2017 21:50
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 stefanolsen/9b44c334974ee34d7cb3ead435d7d29e to your computer and use it in GitHub Desktop.
Save stefanolsen/9b44c334974ee34d7cb3ead435d7d29e to your computer and use it in GitHub Desktop.
Code listings for blog post about generating and exporting catalog feeds from EPiServer Commerce. Read about it here: https://stefanolsen.com/posts/on-exporting-product-catalogs-to-google-or-facebook/
<FieldMapping xmlns="http://stefanolsen.com/CatalogFeed.GoogleMerchant/MappingDocument.xsd">
<ContentType CommerceType="CatalogNode">
<Fields>
<MappedField MetaField="GoogleProductCategoryId" FeedField="google_product_category"/>
</Fields>
</ContentType>
<ContentType CommerceType="Product">
<Fields>
<MappedField MetaField="DisplayName" FeedField="title"/>
<MappedField MetaField="Description" FeedField="description"/>
<MappedField MetaField="Brand" FeedField="brand"/>
</Fields>
<ImageGroup AssetMetaField=""/>
</ContentType>
<ContentType CommerceType="Variation">
<Fields>
<MappedField MetaField="Code" FeedField="code"/>
<MappedField MetaField="StopPublish" FeedField="expiration_date"/>
<MappedField MetaField="Color" FeedField="color"/>
<MappedField MetaField="Size" FeedField="size"/>
<FixedField FeedField="condition" Value="new"/>
</Fields>
</ContentType>
</FieldMapping>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment