seb06
Forum Replies Created
-
Hello, I have the same problem !!!
My email text has no more line breaks !!
I set into my email strings the “\n” characters that was working well and added a new line before the last update.
Now all the text has no more line breaks and all the text in the email is stucked !!!
Thanks for your help,
Best- This reply was modified 5 years, 4 months ago by seb06.
Hello, Yes the email is generated in a <script> tag but in my side should not be soft encoded, I need the email to be normal.
How can I excluse that script from encoding?
Best
Any answer on this from the plugin author??
Thanks
Hello,
I am not talking about a brand bu any custom taxonomy you would like…
The reason why it could be useful to integrate it natively in woocommerce API, it is because it could be good to have others taxonomies than default woocommerce categories and tags for your products…
As we can create custom taxonomies in WP and attach to woocommerce product, it should be interested to deal with that custom taxonomies with the API too…
and it is not only building a custom taxonomy from API, but also attaching the custom taxonomy to a product, edit, delete, create that brand…
Thanks for your help !
CheersYes sure, I know that the Brands plugin has API integration built in… ??
But should be present natively into woocommerce !!
Best Regards
Hello,
Thanks for your answer,
However,
woocommerce_rest_insert_product
doesn’t work, I do not know why but it never triggerswoocommerce_new_product
worksBut what I would like is what is done by the Brands plugin
https://woocommerce.com/products/brandsBrand is a custom taxonomy attached to woocommerce products.
Adding the custom taxonomy to the woocommerce product with API will look like this:
curl -X PUT https://example.com/wp-json/wc/v2/products/123 \
-u consumer_key:consumer_secret \
-H ‘Content-Type: application/json’ \
-d ‘{“brands”: [48, 49]}’I need this, would be great if woocommerce integrate it…
Best
In fact, what I need is to set a “brand” to my product like this:
curl -X PUT https://example.com/wp-json/wc/v2/products/123 \
-u consumer_key:consumer_secret \
-H ‘Content-Type: application/json’ \
-d ‘{“brands”: [48, 49]}’I am exactly looking for that !!!!!!!!!!!! And how to do it?
Because at this time, if I do that, it doesn’t work !
I think I should create an endpoint or something else in order the api know my custom taxonomy…
Best
- This reply was modified 5 years, 10 months ago by seb06.
Hello Dougaitken !
It is exactly like adding a “Brand” to a product !!!
I already added the custom taxonomy to the product.
I can use this perfectly manually but not with WOO API V2
I saw in the first link you sent me exactly what I need:
I think what I miss is creating an endpoint
In the example you sent, the endpoint is /wp-json/wc/v1/products/brands
So I need to know how I can create an endpoint that woo API will reply to, where I can make my API request like PUT, POST, GET and DELETE to update/create my custom taxonomy
A great thanks in advance if you have an idea how to have the woo api answering my request ?
Best Regards
Forum: Plugins
In reply to: [WooCommerce] Which hook is triggered when create/edit product with API ?I would like to get the params sent in the request when I create a product with the API.
Because I want to get custom data for setting custom taxonomy to a product.
It is not foreseen by the woocommerce documentation to attach a woocommerce custom taxonomy (other than catgeories and tags) to a product with the remote API.
Hope this will help to understand my need,
Best
Hello,
For your information, I am talking about custom taxonomies, which is not foreseen into the woocommerce documentation.
I can attach my custom taxonomy in the WP Backend but not with the API for a remote creation of a product…
Nothing is foreseen in the doc for that behavior!!
Please need some help !
Best- This reply was modified 5 years, 10 months ago by seb06.
Please somebody has an answer for me?
Thanks
Any answer on this?
Thanks for your help in advance !
BestThanks for your answer,
However, I already read all about the woocommerce documentation and I do not find anything for custom taxonomy.
there are :
– categories
– tags
– attributes
– default_attributes
– meta_dataShould I use one of those?
I am lost…
Thanks for your help!
BestHello,
Maybe it could be useful for you to look at the php code inside the plugin and see if something could be interfering with your plugin?
Thanks for your help,
Best
Hello,
Any news?
Could you please help me resolving this issue?
Thanks