ccrz.ccLogicCartAddTo.addCurrentLineDataToCart

Calls other inner, non-overridable methods that sanitize and update the line data for adding cart items.

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> addCurrentLineDataToCart(Map<String, Object>)

Inputs (Required)

This method accepts the working Map<String, Object> from the ccrz.ccLogicCartAddTo.addMajorLineItems or ccrz.ccLogicCartAddTo.addMinorLineItems method.

This method passes the working map through a chain of inner, non-overridable methods that:

  • Remove duplicate any line data
  • Fetch the product details that correspond to the major and minor line items
  • Fetch details for externally priced products
  • Evaluate the ccrz.ccApiCart.IS_ADD_SEPARATE key for determining whether to combine multiple lines for the same SKU

Outputs

This method returns the working Map<String, Object> after the inner methods complete.