public function MailchimpEcommerce::updateCartLine in Mailchimp 8
Updates an existing line item in a cart.
Parameters
string $store_id: The unique identifier for the store.
string $cart_id: The unique identifier for the cart.
string $line_id: A unique identifier for the order line item.
array $parameters: An array of optional parameters. See API docs.
bool $batch: TRUE to create a new pending batch operation.
Return value
object The API cart line response object.
See also
http://developer.mailchimp.com/documentation/mailchimp/reference/ecommer...
File
- lib/
mailchimp-api-php/ src/ MailchimpEcommerce.php, line 366
Class
- MailchimpEcommerce
- Mailchimp Ecommerce library.
Namespace
MailchimpCode
public function updateCartLine($store_id, $cart_id, $line_id, $parameters = [], $batch = FALSE) {
$tokens = [
'store_id' => $store_id,
'cart_id' => $cart_id,
'line_id' => $line_id,
];
return $this
->request('PATCH', '/ecommerce/stores/{store_id}/carts/{cart_id}/lines/{line_id}', $tokens, $parameters, $batch);
}