Skip to content

naveed-ahmad-biz/SitecoreDiscover.GenerateCategoryFeed

Repository files navigation

Purpose

This sample code converts the /me/categories call from Sitecore OrderCloud into a TAB file as per the specficiations given at https://doc.sitecore.com/discover/en/developers/discover-developer-guide/category-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/categories API call. The response of the call is stored in the JSON file.

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/categories 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