Skip to content

naveed-ahmad-biz/SitecoreDiscover.GenerateProductFeed

Repository files navigation

Purpose

This sample code converts the /me/product call from Sitecore OrderCloud into a TAB file as per the specficiations given at https://doc.sitecore.com/discover/en/developers/discover-developer-guide/product-data-feed-specifications.html

The TAB file can then be used to send data to Sitecore Discover for initial bulk upload.

The JSON file is generated from the Sitecore's PLAY! Shop demo instance by calling /me/product API call. The response of the call is stored in the JSON file.

The /me/product call is used by the PLAY!Shop demo to display initial list of products for an anonymous user.

The code is provided as-is without any warranty. This is a starting point, you will have to adjust the code and data models as per the JSON output/response for your own shop.

How to Use

  1. Clone the repository locally
  2. Open the project in VS 2022 and build solution
  3. Look for the generated file in the bin/debug/data folder, make sure no code or build issues
  4. Update the data/product_data.json to match your marketplace JSON by calling /me/proudcuts via Sitecore OrderCloud developer console
  5. Re-run the code
  6. Upload the file to Sitecore Discover

Contribute

If you have any suggestions or ideas, open a PR request.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages