ccrz.ccLogicCartSave.validateCart
Calls the ccrz.ccApiCart.validate method before
saving the cart.
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 |
Signature
global virtual Map<String, Object> validateCart(Map<String, Object>)
Inputs (Required)
This method accepts the Map<String, Object> from the ccrz.ccLogicCartSave.updateCartAddresses method.
This method requires the following key in the working map:
- ccrz.ccLogicCartSave.CURRENT_CART
- ccrz__E_Cart__c that represents the cart to evaluate for saving.
This method passes the cart ID of ccrz.ccLogicCartSave.CURRENT_CART as the ccrz.ccApiCart.CART_ID input for the ccrz.ccApiCart.validate method.
Outputs
This method returns the working Map<String, Object>, and sets the following keys:
- ccrz.ccApi.MESSAGES
- List<ccrz.cc_bean_Message>, where each ccrz.cc_bean_Message contains error information sent from the server to the client. Typically, these messages are included only when ccrz.ccApi.SUCCESS is FALSE.
- ccrz.ccApiCart.ALLOW_CHECKOUT
- Boolean
Value Usage true The buyer is allowed to check out from the Shopping Cart page. false The buyer isn't allowed to check out from the Shopping Cart page.