ccrz.ccLogicCartPrice.processCart
Evaluates the list of ccrz__E_CartItem__c
records in the fetched cart, and sets null values for discount fields. Optionally, this method
also consumes the result of the ccrz.cc_api_CartExtension.preprocess extension point method.
Compatibility
This reference applies to:
Release | Managed Package Version | API Version |
---|---|---|
B2B Commerce for Visualforce Winter ’21 | 4.13 | 12 |
B2B Commerce for Visualforce Spring ’20 | 4.12 | 11 |
B2B Commerce for Visualforce Summer ’19 | 4.11 | 10 |
B2B Commerce for Visualforce Spring ’19 | 4.10 | 9 |
B2B Commerce for Visualforce Summer ’18 | 4.9 | 8 |
Signature
global virtual Map<String, Object> processCart(Map<String, Object>)
Inputs (Required)
This method accepts the Map<String, Object> from the ccrz.ccLogicCartPrice.validateLastPriceDate method.
This method requires the following keys in the working map:
- 'cartItemList'
- List<ccrz__E_CartItem__c> of all the cart's items.
- 'cartToPrice'
- ccrz__E_Cart__c that represents the cart to evaluate.
- ccrz.ccApiCart.SKIP_CART_PRICING
- Boolean
Value Usage true Skip this method. false Execute this method.
Inputs (Optional)
If the working map includes the following keys, this method evaluates them:
- 'skpPreProc'
- Boolean
Value Usage true Skip calling the ccrz.cc_api_CartExtension.preprocess extension point method. false (default) Call the ccrz.cc_api_CartExtension.preprocess extension point method, and apply its return data to the working map: - Use the cart specified by ccrz.cc_api_CartExtension.PARAM_CART for this method's 'cartToPrice'.
- Use the cart items specified by ccrz.cc_api_CartExtension.PARAM_CARTITEMS for this method's 'cartItemList'.
Outputs
This method returns the working Map<String, Object>, and sets the following fields on each ccrz__E_CartItem__c record:
ccrz__E_CartItem__c Field | Value |
---|---|
ccrz__AbsoluteDiscount__c | null |
ccrz__AdjustmentAmount__c | null |
ccrz__PercentDiscount__c | null |
ccrz__PricingModifierTypes__c | null |