You are here

public function CartHandlerInterface::addOrUpdateCart in Mailchimp E-Commerce 8

Adds or updates a cart in the current Mailchimp store.

Parameters

string $cart_id: The cart ID.

array $customer: Associative array of customer information.

  • id (string): A unique identifier for the customer.

array $cart: Associative array of cart information.

  • currency_code (string): The three-letter ISO 4217 currency code.
  • order_total (float): The total for the order.
  • lines (array): An array of the order's line items.

See also

http://developer.mailchimp.com/documentation/mailchimp/reference/ecommer...

1 method overrides CartHandlerInterface::addOrUpdateCart()
CartHandler::addOrUpdateCart in src/CartHandler.php
@inheritdoc

File

src/CartHandlerInterface.php, line 50

Class

CartHandlerInterface
Interface for the Cart handler.

Namespace

Drupal\mailchimp_ecommerce

Code

public function addOrUpdateCart($cart_id, array $customer, array $cart);