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

how can i check product exist by sku and if(){}

Open ilago opened this issue 9 years ago • 1 comments

something like that $x = $client->products->get_by_sku( 'QWBENEFIT' ); if (!$x) { echo "OK! "; } else { echo "BAD! "; }

ilago avatar Nov 12 '15 23:11 ilago

get_by_sku is dixit "Deprecated due to issues" Use get with a filter, see #131

xewl avatar Nov 14 '15 02:11 xewl