wc-api-java icon indicating copy to clipboard operation
wc-api-java copied to clipboard

Suppor for product variations

Open dcoturel opened this issue 7 years ago • 1 comments

Hi, icoderman, I have another issue with dealing with product variations. In the case of an update, you have to call the api with two params:

/products/:product_id/variations/:variation_id

The current update() method requires one id parameter, and uses this to assign the last String.format placeholder. You think there is a way to handle this without modifying current WooCommerce interface?

Regards

dcoturel avatar Apr 11 '18 21:04 dcoturel

You can put it in a batch and use the String.format() function: https://github.com/calatonsystems/wc-api-java/blob/efdaabcc90431556caf7966152eb757de1f42f36/src/test/java/com/icoderman/woocommerce/integration/WooCommerceClientTest.java#L93

Danc2050 avatar Nov 20 '22 02:11 Danc2050