b2b Commerce Data Model - Copy (2)
b2b Commerce Data Model - Copy (2)
2
1.1 User and Account Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.2 Product Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3 Pricing and Entitlements Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.4 Cart Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.5 Orders Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.6 User Presentation Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.7 Invoices Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.8 Subscriptions Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.9 Payments Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.10 Configuration Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Data Model
The foundation of CloudCraze is built on a number of custom and standard Salesforce objects. These objects are roughly broken out into a
number of key sections:
Because CloudCraze is a managed package, the package namespace is prefixed on all object names. For example, the CloudCraze Order
object is ccrz__E_Order__c. The same is true for all fields within CloudCraze. This is a Salesforce standard for all managed package objects
and fields and is used to avoid name collisions with subscriber objects or other managed packages.
Object Extension
Adding new subscriber fields—New subscriber fields can be added to any CloudCraze OOTB object. Avoid duplicating the non-
namespaced field name. For example, the CloudCraze ccrz__E_Order__c object defines the field ccrz__Comments__c. If you add
a new subscriber field, name it something other than Comments__c. New subscriber fields can be part of a change set.
Altering the OOTB picklist values—Due to Salesforce restrictions, these changes cannot be part of a change set, but must instead be
manually performed across environments.
CloudCraze has a very limited footprint within an org. This limited footprint is by design and is meant to allow CloudCraze to operate without
interfering with other Salesforce functions.
For example, Salesforce defines a standard Product object while CloudCraze defines the CC Product object that exists in parallel. This parallel
object structure allows CloudCraze to be installed within an org that utilizes the Salesforce Product without requiring any impact analysis to be
performed. If an organization uses the standard Salesforce Product, it can be easily synchronized with the CloudCraze CC Product, if desired.
Caution:
Any CloudCraze Object or Field for which documentation is not provided should be considered as internal to CloudCraze.
Product Data
The CloudCraze product objects represent the goods to be sold on the site. Constructing proper Object Details
product data is fundamental to the presenting the proper information to the end customer.
ccrz__E_Attribute__c
ccrz__E_Category__c
ccrz__E_CategoryI18N__c
ccrz__E_CategoryMedia__c
ccrz__E_CategorySpec__c
ccrz__E_CompositeProduct
__c
ccrz__E_Product__c
ccrz__E_ProductCategory__c
ccrz__E_ProductGuide__c
ccrz__E_ProductInventoryIte
m__c
ccrz__E_ProductItemI18N__c
ccrz__E_ProductMedia__c
ccrz__E_ProductSpec__c
ccrz__E_ProductSpecIndex_
_c
ccrz__E_RelatedProduct__c
ccrz__E_RelatedProductGro
up__c
ccrz__E_SiteIndex__c
ccrz__E_Spec__c
ccrz__E_SubProdTerm__c
ccrz__E_SubProdTermI18N
__c
ccrz__E_ProductIndex__c
Entitlement Flow
If the set of relationships from the currently logged in User can be traced to a given CC Product then
the user can see the CC Product.
Cart Data
Carts with CloudCraze represent a draft order. Carts can be created, changed, or deleted at will until Object Details
the Cart is "placed" and an Order is created from that Cart.
ccrz__E_Cart__c
ccrz__E_CartItem__c
ccrz__E_CartItemGroup__c
ccrz__E_ShippingRate__c
ccrz__E_TaxRate__c
ccrz__E_Term__c
CC Cart Relationships
Orders Data
Orders represent a placed Cart. Object Details
ccrz__E_Order__c
ccrz__E_OrderItem__c
ccrz__E_OrderItemGroup__c
ccrz__E_OrderShipment__c
ccrz__E_OrderShipmentItem
__c
ccrz__E_OrderTerm__c
Invoices Data
Invoices represent funds owed from or to a customer. Object Details
ccrz__E_Invoice__c
ccrz__E_InvoiceItem__c
Subscriptions Data
Subscriptions contain recurring order and/order installment data. Object Details
ccrz__E_Subscription__c
Subscription Object model
Payments Data
Payments are used to store payment information from a customer. The payments can be walleted or Object Details
stored payments or may be transactional payments.
ccrz__E_StoredPayment__c
ccrz__E_TransactionPayme
nt__c
Configuration Data
CloudCraze uses a custom object structure for storing and managing storefront- and page-specific configuration data, such as enabling Effective
Account functionality.
Configuration Module-Meta-Value