Sitecore OrderCloud Documentation

docs

Portal login

Making Your Product Visible

In this chapter we've investigated your default buyer catalog and created a new product with a default price schedule. Our default catalog has ViewAllProducts set to true, so one might think that your product is ready for buyer users to purchase! This is a common misconception, as products are not inherently part of a catalog. They exist apart, so that sellers can share products across many catalogs.

Connecting the dots

To make the product visible in our example we must assign it directly to the default buyer catalog. This is called a product-catalog assignment.

In other scenarios this assignment is created automatically when you assign products to a category within a catalog, similar to when you update a buyer organization's DefaultCatalogID and OrderCloud creates the buyer-catalog assignment for you.

FURTHER READING

Product Visibility

For this reason many developers overlook the fact that they need to explicitly assign a product to a catalog in the absence of categories.

Assign the product to the default catalog
1POST https://sandboxapi.ordercloud.io/v1/catalogs/productassignments HTTP/1.1
2Authorization: Bearer INSERT_ACCESS_TOKEN_HERE
3Content-Type: application/json; charset=UTF-8;
4
5{
6 "CatalogID": "BUYER_ORGANIZATION",
7 "ProductID": "SHIRT"
8}

You now have a working product catalog! It may be simple, but it has everything you need to start creating orders in the buyer perspective.

FURTHER READING

Me and My Stuff


Still have questions?
Ask in our Community Channel

Content Powered By
Sitecore Logo

© Copyright 2024, Sitecore OrderCloud®. All rights reserved.

Contact Us
Privacy Policy
Sitecore