You are here

public function MailchimpEcommerce::updateCart in Mailchimp 8

Updates a specific cart.

Parameters

string $store_id: The unique identifier for the store.

string $cart_id: The unique identifier for the cart.

array $parameters: Associative array of optional request parameters.

bool $batch: TRUE to create a new pending batch operation.

Return value

object The API cart response object.

See also

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

File

lib/mailchimp-api-php/src/MailchimpEcommerce.php, line 227

Class

MailchimpEcommerce
Mailchimp Ecommerce library.

Namespace

Mailchimp

Code

public function updateCart($store_id, $cart_id, $parameters = [], $batch = FALSE) {
  $tokens = [
    'store_id' => $store_id,
    'cart_id' => $cart_id,
  ];
  return $this
    ->request('PATCH', '/ecommerce/stores/{store_id}/carts/{cart_id}', $tokens, $parameters, $batch);
}