public function CartHandlerInterface::addCartLine in Mailchimp E-Commerce 8
Adds a line to a cart in the current Mailchimp store.
Parameters
string $cart_id: The cart ID.
string $line_id: A unique identifier for the order line item.
array $product: Associative array of product information.
- product_id (string) The unique identifier for the product.
- product_variant_id (string) The unique identifier for the variant.
- quantity (int) The quantity of a cart line item.
- price (float) The price of a cart line item.
1 method overrides CartHandlerInterface::addCartLine()
- CartHandler::addCartLine in src/
CartHandler.php - @inheritdoc
File
- src/
CartHandlerInterface.php, line 74
Class
- CartHandlerInterface
- Interface for the Cart handler.
Namespace
Drupal\mailchimp_ecommerceCode
public function addCartLine($cart_id, $line_id, $product);