python-wordpress-xmlrpc icon indicating copy to clipboard operation
python-wordpress-xmlrpc copied to clipboard

Woocommerce 'New Product' instead of New Post?

Open danielddddddd opened this issue 11 years ago • 4 comments

Hi,

Looking at this page it looks like it's possible to use the XMLRPC endpoint to create/update/etc products in Woocommerce, which itself uses posts of type "product" instead of post/parent/etc - is it possible to use your code to do this?

I have tried to do this with the woocommerce REST API in Python and not gotten too far with it.

Best wishes

Daniel

danielddddddd avatar Jan 29 '15 23:01 danielddddddd

Absolutely, just be sure to set the 'post_type' to 'product'

zach-adams avatar Feb 06 '15 05:02 zach-adams

                                                                                  Yeah this doesn't seem to work, there's a ton of meta that it needs to go along with it.                                                                                                                                                                                                                 From: Zach AdamsSent: Friday, 6 February 2015 05:17To: maxcutler/python-wordpress-xmlrpcReply To: maxcutler/python-wordpress-xmlrpcCc: Daniel DaintySubject: Re: [python-wordpress-xmlrpc] Woocommerce 'New Product' instead of New Post? (#70)Absolutely, just be sure to set the 'post_type' to 'product'

—Reply to this email directly or view it on GitHub.

danielddddddd avatar Feb 06 '15 08:02 danielddddddd

@kamazoy did you end up getting it working by extended AuthenticatedMethod?

vccabral avatar Apr 07 '15 03:04 vccabral

I tried 'post_typ' to 'product' and it work, but I cannot add other meta like 'sku', 'description', price etc. I tried add it in custom_fields but still not working.

WilfredChong avatar Sep 17 '17 06:09 WilfredChong