Skip to content

Commit 9e59cc8

Browse files
authored
Update Client.php
1 parent bd9f452 commit 9e59cc8

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/Bigcommerce/Api/Client.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2040,4 +2040,15 @@ public static function deleteShippingMethod($zoneId, $methodId)
20402040
{
20412041
return self::deleteResource('/shipping/zones/'. $zoneId . '/methods/'. $methodId);
20422042
}
2043+
2044+
/**
2045+
Get collection of product skus by Product
2046+
@param array $filter
2047+
@return mixed
2048+
*/
2049+
public static function getSkusByProduct($product_id, $filter = array())
2050+
{
2051+
$filter = Filter::create($filter);
2052+
return self::getCollection('/products/'.$product_id.'/skus' . $filter->toQuery(), 'Sku');
2053+
}
20432054
}

0 commit comments

Comments
 (0)