• Resolved eumene

    (@eumene)


    Hi all

    I’m trying to create some automated scripts to inizialize our Woocommerce site

    So, using wpcli integration, I’d like to inizialize tax classes and tax rates
    I think I found a bug to all wpcli tax_class commands, cause the Tax Class API (used by wpcli) has no id property
    https://woocommerce.github.io/woocommerce-rest-api-docs/#tax-class-properties

    If I run
    > wp wc tax_class list –user=i3_admin
    no id column is retrived

    but tax_class commands (es. delete) require id as mandatory parameter

    If I try the id stored into database, e.g.
    > wp wc tax_class delete “1” –slug=”reduced-rate” –user=admin

    wpcli raises an error cause no API matches the URL called (/tax/class/1)

    I hope the issue desciption is clear.

    Thanks

    Diego

Viewing 1 replies (of 1 total)
  • Plugin Support EastOfWest a11n

    (@eastofwest)

    Hi Diego! Thanks for highlighting this. An issue has been opened on Github, and you’ll be able to follow/participate there. In light of that, I’ll mark this thread as resolved here in the forums.

Viewing 1 replies (of 1 total)
  • The topic ‘WPCLI – Impossible to manage Tax Classes via cli’ is closed to new replies.