Reverse bundle lookups, published release limits, and shared organization catalogs
MINOR Find the bundles that contain a product
From a product in a published catalog, you can list the bundles that offer it as a component option. Use this to build "included in" links, or to see which bundles a component product belongs to.
What's New?
bundlesrelationship - A product response includesrelationships.bundleswhen that product is an option in at least one bundle in the release.datais empty; followlinks.selfto list the bundle IDs- Admin lookup -
GET /catalogs/{catalog_id}/releases/{release_id}/products/{product_id}/relationships/bundlesreturns those bundle IDs for one release. UselatestPublishedas the release ID for the newest published release - Shopper lookup -
GET /catalog/products/{product_id}/relationships/bundlesreturns the same list for the catalog and release resolved for the shopper - Direct membership only - IDs are in ascending order. A bundle that contains another bundle is not listed for that inner bundle's options. The list is empty when the product is in the release but is not a bundle option. The request returns
404when the product is not in the release
Membership is written when the catalog is published, so it appears on the next successful publish. A later change to which bundles include the product puts that product in the release delta, even when the product's other fields are unchanged.
Note: Legacy catalog reads (catalog_id set to legacy) do not support this lookup.
For details see:
MINOR Choose how many published releases a catalog keeps
You can keep one, two, or three published releases per catalog. A new catalog keeps two unless you set a different maximum. A catalog created before this change keeps the previous limit until you set a maximum.
What's New?
max_published_releases- Set1,2, or3on create or update. Any other value returns400 Bad Request. Omit it on create and the catalog stores2. On update, omit it or sendnulland the stored maximum is unchanged- Existing catalogs - A catalog that has never stored
max_published_releasesstill keeps the current release and two releases before it. The attribute is omitted on those catalogs - When extras are removed - If a catalog has more published releases than its maximum, the oldest published releases are removed on the next successful publish. Updating the catalog alone does not remove them
For details see:
MINOR Search a shared organization catalog
Catalog Search now supports powering search requests for a site using a published organization catalog, so several stores can share that catalog instead of each publishing its own copy.
What's New?
- Store rules - Create a store-level rule that points at an organization catalog, so the store uses that organization's search index
- Shared product sets - Several stores can search the same published organization catalog and share a common set of products, instead of each store publishing its own copy
For details see: