public function ProductHandlerInterface::deleteProductVariant in Mailchimp E-Commerce 8
Deletes a product variant in Mailchimp.
Automatically deletes the product if the only product variant is removed.
Parameters
string $product_id: Unique ID of the product.
string $product_variant_id: ID of the product variant. Can be identical to $product_id for single products.
1 method overrides ProductHandlerInterface::deleteProductVariant()
- ProductHandler::deleteProductVariant in src/
ProductHandler.php - @inheritdoc
File
- src/
ProductHandlerInterface.php, line 122
Class
- ProductHandlerInterface
- Interface for the Product handler.
Namespace
Drupal\mailchimp_ecommerceCode
public function deleteProductVariant($product_id, $product_variant_id);