Skip to content

Commit 2a0c29a

Browse files
committed
Set the resource id on ProductVariantMetafield when creating
1 parent ae26046 commit 2a0c29a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/BigCommerce/Api/Catalog/Products/ProductVariant/ProductVariantMetafieldsApi.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public function getAll(array $filters = [], int $page = 1, int $limit = 250): Pr
7171

7272
public function create(ProductVariantMetafield $metafield): ProductVariantMetafieldResponse
7373
{
74+
$metafield->resource_id = $this->getParentResourceId() ?? 0;
7475
return new ProductVariantMetafieldResponse($this->createResource($metafield));
7576
}
7677

0 commit comments

Comments
 (0)