• Resolved kiosov

    (@kiosov)


    Can’t realize what is the best way to solve this problem. I have VIP customers (“vip_customer” user role) and regular customers (“customer” user role). There is a lot of ways how to turn a customer into a VIP customer based on different rules: order total price, count of orders, etc… But I can’t find the solution for how to change the user role from “vip_customer” to “customer” if his last order was 3 (for example) months ago. Do I need to use WP-Cron (once per day) for that because running through all VIP users whenever function.php is working is kinda expensive?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    We haven’t heard back on this in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change WooCommerce client user role based on last order time’ is closed to new replies.