• Resolved speakspokecomjames

    (@speakspokecomjames)


    Hi, I’m trying to use Automator to write into some custom usermeta fields on a Woocommerce Memberships trigger. In the logs it seems to suggest that the recipe has completed successfully, but the usermeta value does not change.

    The usermeta field in question is {{USERMETA:account_funds}}

    Has anyone had and solved a similar problem?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Uncanny Owl

    (@uncannyowl)

    Hi @speakspokecomjames, sorry to hear about the issue.

    Is there any chance you could share a screenshot with the action details, so where you’re setting usermeta? It would be great to see how you’re linking a value to it.

    When you check it after the recipe, are you checking directly in the usermeta table using PHPMyAdmin, or can you confirm how you’re checking for the update? We also wanted to make sure it’s definitely the right key and nothing is changing in the database.

    Thanks!

    Thread Starter speakspokecomjames

    (@speakspokecomjames)

    Hi. Thanks for your reply. Here is a screenshot of the recipe. We’ve tried a few different recipes with a few different triggers, some of which fired and some didn’t, but the usermeta is always unchanged.

    To answer your question about how we’re checking for an update, I’ve checked in the user profile in the front-end, back-end and also in phpMyAdmin. The value remains at 0.

    According to the documentation from WC Account Funds, USERMETA:account_funds is definitely the right key.

    Plugin Author Uncanny Owl

    (@uncannyowl)

    Sorry, it looks like our use of tokens was confusing here. So the key on the left should actually be “account_funds”, not “{{USERMETA:account_funds}}”. The latter is a token, which means you are looking up the value, so when this is running it’s trying to set 0 = 60.

    This probably isn’t clear enough from our documentation. I’ll make a note and we’ll see if we can improve it next week.

    Thread Starter speakspokecomjames

    (@speakspokecomjames)

    That worked! Thanks very much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Automator not writing usermeta’ is closed to new replies.