• Resolved oneprg

    (@oneprg)


    Unable to add otions.

    I am doing PUT /wc/v3/products/3324 with body 
    
    {
    "attributes":?[
    ????????{
    ????????????"id":?1,
    ????????????"name":?"VOL",
    ????????????"position":?1,
    ????????????"visible":?true,
    ????????????"variation":?true,
    ????????????"options":?[
    ????????????????"355?ml"????????????????
    ????????????]
    ????????}
    ????????]
    }

    In response I get

    “attributes”: [

            {

                “id”: 1,

    ????????????“name”:?“VOL”,

                “position”: 1,

                “visible”: true,

                “variation”: true,

    ????????????“options”:?[] <—————- ??????

            }

    The field “options” is not filled. Why?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Saif

    (@babylon1999)

    Hello @oneprg,

    Thank you for reaching out!

    I was able to add the attribute term with no problem using the same call PUT /wc/v3/products/. :?)


    Link to image: https://d.pr/i/1lO99j

    Have you tried using the term slug instead?


    Link to image: https://d.pr/i/2C6GzU

    Look forward to hearing back from you.

    Thread Starter oneprg

    (@oneprg)

    Thanks for the answer.

    Just yesterday the problem was solved.

    In fact, everything worked, but it was not displayed in the administrative panel. We created a new user and everything is displayed under it.

    Saif

    (@babylon1999)

    In fact, everything worked, but it was not displayed in the administrative panel. We created a new user and everything is displayed under it.

    Glad to know you’ve figured it out! ??

    I will mark the thread as solved. If you have a few minutes, we’d love it if you could leave us a review: https://www.ads-software.com/support/plugin/woocommerce/reviews/

    Cheers!

    Thread Starter oneprg

    (@oneprg)

    Certainly. Did.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘attributes – options’ is closed to new replies.