You are here

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

Adds a new product variant to Mailchimp.

Parameters

string $product_id: Unique ID of the product.

string $product_variant_id: ID of the product variant.

string $title: The product title.

string $url: The product url.

string $image_url: The product image url.

string $sku: The product SKU.

float $price: The product price.

int $stock: The stock total for a product.

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

File

src/ProductHandlerInterface.php, line 96

Class

ProductHandlerInterface
Interface for the Product handler.

Namespace

Drupal\mailchimp_ecommerce

Code

public function addProductVariant($product_id, $product_variant_id, $title, $url, $image_url, $sku, $price, $stock);