Skip to main content
Sitecore Documentation
  • Learn
  • Downloads
  • Changelog
  • Roadmap
XP
Sitecore Experience Commerce
  • Sitecore Experience Commerce
            • A customizable domain model
            • Service layer API
            • Service method pipelines
            • Passing data between pipeline components
            • System messages
            • Success
            • Configuration
            • Use a custom factory
            • The EaPlanProvider class
            • The ContactFactory class
            • The ItemClassificationService class
            • The CommerceContext class
            • Service provider
            • Custom Commerce Connect cart and orders entities
  1. Integration service layers
  1. Sitecore Experience Commerce
  2. Commerce Connect
  3. Integrating with Commerce Connect
  4. Integration service layers
  5. The CommerceContext class

The CommerceContext class

Version:

The CommerceContext class is used to determine the current product and inventory location that is the focus of the site. This class is currently only used by the inventory rule conditions when no stock location or product id is provided to calculate against.

If you have suggestions for improving this article, let us know!

© Copyright 2026, Sitecore A/S or a Sitecore affiliated company.
All rights reserved.

Privacy policySitecore Trust CenterTerms of use