Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with Rest Api #13

Open
zhdishaq opened this issue Oct 22, 2018 · 3 comments
Open

Not working with Rest Api #13

zhdishaq opened this issue Oct 22, 2018 · 3 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@zhdishaq
Copy link

I cannot use with rest api

@iamdharmesh
Copy link
Owner

Hello @zhdishaq,

Thanks for report issue. Yes its not working with REST API yet. we will add support for it soon..

Thanks,
Dharmesh

@iamdharmesh iamdharmesh added the enhancement New feature or request label Oct 30, 2018
@iamdharmesh iamdharmesh self-assigned this Nov 22, 2018
@iamdharmesh iamdharmesh added this to the 1.2.0 milestone Nov 22, 2018
@sunil11475
Copy link

Insert Product with variation : Works well with REST API - version 'wc/v2' using class-wc-api-client.php

Using - $woocommerce->products->create($data);
https://github.com/helpforfitness/WooCommerce-REST-API-Client-Library-v2

Above library doesn't support "create categories" which you need to call separately using rest API V3 Library -

$woocommerce->post('products/categories', $cdata);

Hope above information will help somebody. Try to figure out how to insert URL for categories using featured-image-by-url.

Have a nice day!

@fernandogiacomino
Copy link

I was able to update "image_by_url" meta data from WC api, the structure is something like this:

msg.payload= {
"name": $product_name,
"type": "simple",
"sku": $product_sku,
"regular_price": $product_price,
(...)
"meta_data": [{ "key": "_knawatfibu_url", "value": $image_url1 },
{ "key": "_knawatfibu_wcgallary", "value": [$image_url2, $image_url3, $image_url4]}]
};

"_knawatfibu_url" is the metadata key for featured image, and "_knawatfibu_wcgallary" must be an array of url strings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants