kloon / WooCommerce-REST-API-Client-Library

A PHP wrapper for the WooCommerce REST API
GNU General Public License v3.0
356 stars 175 forks source link

get_by_sku not working with products with dots #196

Open deianmotov opened 8 years ago

deianmotov commented 8 years ago

Hi guys,

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

Thanks

hamzeh1388 commented 8 years ago

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! :))