Update a product in the product document.

See

  • See: \App\Shared\Helpers\cms_insert_product() For what fields can be set in $productdata.

  • Full name: cms_update_product
  • Defined in: cms/core/Shared/Helpers/product.php

Parameters

Parameter Type Description
$productdata array|\Psr\Http\Message\ServerRequestInterface|\App\Domain\Product\Model\Product An array of product data or a product object.

Return Value

string|\Qubus\Error\Error

The updated product's id or return Error if product could not be updated.