ccrz.ccLogicCartSave.updateCartAddresses
Calls the ccrz.cc_hk_EffectiveAccount.saveCart
method for evaluating a selected effective account, if enabled, and updating the cart's shipping
and billing addresses.
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> updateCartAddresses(Map<String, Object>)
Inputs (Required)
This method accepts the Map<String, Object> from the ccrz.ccLogicCartSave.updateBeforeSave 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 ccrz.ccLogicCartSave.CURRENT_CART as the ccrz.cc_hk_EffectiveAccount.PARAM_CART_DATA input for the ccrz.cc_hk_EffectiveAccount.saveCart method.
Outputs
This method returns the working Map<String, Object>, and sets the following key:
- ccrz.ccLogicCartSave.CURRENT_CART
-
ccrz__E_Cart__c that represents the
cart to evaluate for saving, updated with the following values:
Field Name Updated Value ccrz__BillTo__c A clone of the effective account's default billing address. ccrz__EffectiveAccountID__c ID of the account record that corresponds to the selected effective account. ccrz__RequestDate__c The selected or default delivery date returned from the ccrz.cc_api_DeliveryDate extension point class, if applicable. ccrz__ShipTo__c A clone of the effective account's default shipping address.