Jump to content
jdsnty

Unsuspend parent service when addon is paid

Recommended Posts

The Suspend Parent Product option makes it possible to suspend a hosting service when an associated addon is overdue.

Is there a way to automatically unsuspend the parent product once the overdue invoices for the addon are paid?

Share this post


Link to post
Share on other sites

Lacking a native solution (as far as we could tell), we solved the issue by writing an InvoicePaid hook that checks whether any invoice items match an addon and whether that addon belongs to a suspended product with the telltale signs of having been suspended by an overdue addon (the right suspend message, a non-expired next due date, etc.). That method does work, although it's rather convoluted. Having a native way to revert the effects of a suspend parent product option would certainly be helpful.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated