WooCommerce-REST-API-Client-Library icon indicating copy to clipboard operation
WooCommerce-REST-API-Client-Library copied to clipboard

get_by_sku not working with products with dots

Open deianmotov opened this issue 9 years ago • 1 comments

Hi guys,

After the recent updates on woocommerce I noticed the following SKU fails: NT.LC3EE.003

Thanks

deianmotov avatar Aug 21 '16 06:08 deianmotov

hi you can get it with this role:

$client->custom->setup('products');

$result = $client->custom->get('',array( 'filter[sku]' => $product_sku ));


$product_sku =>your custom sku! :))

hamzeh1388 avatar Aug 26 '16 14:08 hamzeh1388