• Resolved freakman

    (@freakman)


    Hello

    I have variant products and for each variant product I have a script to update stock and price. This is done with API, POST only contains data for stock and price.

    Every product has date_modified (and date_modified_gmt) which is part of WP post. When is this updated? Is it normal that when I update the product, this doesn’t update?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    Hmm, good question.

    If it’s not being updated, maybe you need to pass it in the update request?

    If you can test on other objects, like simple product or orders, and see if the automatically update the modified date when passed a few parameters, then it’s probably worth opening up a github issue for this.

    Thread Starter freakman

    (@freakman)

    Hello Caleb

    Thank you for reply. Checking the docs https://woocommerce.github.io/woocommerce-rest-api-docs/#product-properties it seems to be read-only.

    I tested it also for simple products, and it has same problem.

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    Thanks for testing. I’m not 100% sure what the intended result is, but I do have similar thinking to you as to how I would expect this to work.

    Your GH report looks good, so we can continue there so the devs can take a look. Linking here for reference in case anybody else comes across this thread: https://github.com/woocommerce/woocommerce/issues/19427

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Product date_modified is not updating’ is closed to new replies.