You are here

public function ProductHandlerInterface::updateProduct in Mailchimp E-Commerce 8

Updates an existing product in Mailchimp.

Mailchimp only allows for product variants to be updated. The parent product cannot be changed once created. This function will update the variant associated with the given product ID and SKU.

Parameters

string $product_id: Unique ID of the product.

string $title: The product title.

string $url: The product url.

string $image_url: The product image url.

string $description: The product description.

string $type: The product type.

array $variants: The product variants. May be identical to $product_id for single products.

1 method overrides ProductHandlerInterface::updateProduct()
ProductHandler::updateProduct in src/ProductHandler.php
@inheritdoc

File

src/ProductHandlerInterface.php, line 66

Class

ProductHandlerInterface
Interface for the Product handler.

Namespace

Drupal\mailchimp_ecommerce

Code

public function updateProduct($product_id, $title, $url, $image_url, $description, $type, $variants);