• Resolved blondie_c

    (@blondie_c)


    is it possible to modify this plugin based on the order status? I’m looking for similar functionality as mentioned by Meiershus, but as i was reading the post, i figured my situation would be best suited to expire based on the order status. reason for this is that I’m selling a service and expect return customers to make repeat purchases.

    thanks in advance, great plugin regardless.

    https://wordpress.org/plugins/woocommerce-pay-per-post/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Matt Pramschufer

    (@mattpramschufer)

    Hurm.. I am not sure I could do that. Currently I use the function wc_customer_bought_product() which you pass a customer id and a product Id to the function and it returns back true/false.

    This is the fastest best way to achieve the functionality that I was looking for. I believe to do what you are looking for you would have to replace that function with a series of functions which would first wc_get_order(), then check that that order object to see if it contained a product, if it did then get the order status of that order and check if it matched your criteria.

    So in the end, yes, I believe you could, but it would take making several additional api calls.

    Thread Starter blondie_c

    (@blondie_c)

    all that seems over my head. but thanks for the response!

    Plugin Author Matt Pramschufer

    (@mattpramschufer)

    Sorry, I do have plans to refactor this plugin in the future. I will keep this in mind for a feature request.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Access based on order status?’ is closed to new replies.