Product Feeds

The storefront facilitates publishing accurate, comprehensive and up-to-date product information to potential customers. It supports product feeds consisting of a list of products or services along with attributes and product information. Product feeds are also called data feeds or product data feeds that are generated in Extensible Markup Language (XML).

The feeds can be configured on the CommerceHub platform with attributes like Feed Name, Feed Url, Header Template, Line Template, Date Format, Version, etc. Feed files are generated at the back-end at an interval of 20 minutes and published on blob storage.

The Next.js storefront exposes a handler url {storefrontUrl}/feed/{feedName} for the clients to access the content of all the published feeds.

Google Shopping Feed

The storefront generates product feeds in a format that is supported by Google. These products are displayed when a customer uses Google to search for a product. It is published on {storefrontUrl}/feed/googlefeed.xml.

The CommerceHub platform supports configuration for generating Google Shopping Feeds via XML templates. Product information can be published inside an XML file with tags using variables as shown below:

PatternDescription
<g:title>$$$Product.Name$$$</g:title>Used for publishing product name information
<g:id>$$$Product.StockCode$$$</g:id>Used for publishing product stock code information
<g:link>$$$Product.Url$$$</g:link>Used for publishing product url information

Facebook Shopping Feed

The storefront generates product feeds in a format that is supported by Facebook. These products are displayed when a customer uses the Facebook platform. It is published on {storefrontUrl}/feed/facebook.aspx.

The CommerceHub platform supports configuration for generating Facebook Feeds via XML templates. Product information can be published inside an XML file with tags using variables as shown below:

PatternDescription
<g:title>$$$Product.Name$$$</g:title>Used for publishing product name information
<g:id>$$$Product.StockCode$$$</g:id>Used for publishing product stock code information
<g:link>$$$Product.Url$$$</g:link>Used for publishing product url information

Affiliate Feeds

The storefront supports generating affiliate data feeds for affiliates (like Awin, Pinterest, TikTok, etc) to help retailers to better advertise and sell their products and services. The information in this feed includes pictures, descriptions, pricing of products and services.

The following is an example of publishing product information via XML templates:

PatternDescription
<product_name>$$$Product.FullName$$$</product_name>Used for publishing product name information
<product_id>$$$Product.StockCode$$$</product_id>Used for publishing product stock code information
<deeplink>$$$Product.Url$$$?ref=1</deeplink>Used for publishing product url information

Other Feeds

Other feeds contain information which is included in sitemap.xml. The storefront generates the files below using Header and Line Templates.

The following are the examples of other feeds:

  • SiteMap Category
  • SiteMap Collection
  • SiteMap Content
  • SiteMap Product
  • CMS Pages

The above feeds are published inside Sitemap XML (published on {storefrontUrl}/sitemap.xml) as shown below:

<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <sitemap>
    <loc>https://www.betterstorefront.com/sitemapproduct.xml</loc>
    <lastmod>2023-04-17T05:46:09+00:00</lastmod>
  </sitemap>
  <sitemap>
    <loc>https://www.betterstorefront.com/sitemapcontent.xml</loc>
    <lastmod>2023-04-17T05:46:09+00:00</lastmod>
  </sitemap>
  <sitemap>
    <loc>https://www.betterstorefront.com/sitemapcollection.xml</loc>
    <lastmod>2023-04-17T05:46:09+00:00</lastmod>
  </sitemap>
  <sitemap>
    <loc>https://www.betterstorefront.com/cmspages.xml</loc>
    <lastmod>2023-04-17T05:46:09+00:00</lastmod>
  </sitemap>
</sitemapindex>