You are here

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

Updates an existing line in 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::updateCartLine()
CartHandler::updateCartLine in src/CartHandler.php
@inheritdoc

File

src/CartHandlerInterface.php, line 90

Class

CartHandlerInterface
Interface for the Cart handler.

Namespace

Drupal\mailchimp_ecommerce

Code

public function updateCartLine($cart_id, $line_id, $product);