• Hello, how to test if meta key: _wc_xxxxx_yyyy has value?
    The value will be an array.

    Also how to run test at certain time on every day.

    • This topic was modified 9 months, 3 weeks ago by simppa999.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @simppa999,

    Thanks for reaching out.

    I have escalated your query with our development team. They will get back to you as soon as possible.

    Kind regards.

    Thread Starter simppa999

    (@simppa999)

    Thanks

    Plugin Author Algoritmika

    (@algoritmika)

    Hi, @simppa999,

    Please update the plugin to the latest v3.5.3.

    Then, in “WooCommerce > Settings > Order Status Rules > RULE #X > Order Meta”, set the “Meta key” option to _wc_xxxxx_yyyy, leave the “Meta value” option empty, and set the new option we’ve just added – “Meta compare” – to “Not equals”. This way, the rule will be applied only if the order meta is not empty (unless your meta can be set to an empty string).

    Please give it a try and let me know what you think.

    And if you like the plugin, please consider leaving me a rating.

    Plugin Author Algoritmika

    (@algoritmika)

    P.S. Regarding “… how to run test at certain time on every day…” – you’ll need to use “real” (i.e., server) cron jobs: enable the “Allow rules processing via URL” checkbox in “WooCommerce > Settings > Order Status Rules > Advanced”, and then add a server cron job (via your hosting panel) to run this URL at your chosen time:

    https://example.com?alg_wc_order_status_rules_process_rules

    * replace example.com with your actual domain name.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Condition based on meta’ is closed to new replies.