HDInvoice

Feature Request

Published: February 7, 2024
Support status: closed

First I just want to say that we’re loving the hd plugin so far, but we can’t seem to figure out how to test the recurring feature. I don’t want to have to wait an entire week/month to see if it works or not. It would be nice if there was a way to manually create a child invoice as a backup.

thread author: Tammy

Hi Tammy,
I’m glad you are enjoying HDInvoice so far ⇾ you were actually the first official purchase!.

Right out of the gate, I get an interesting question/request.

First, if you have not already, please take a look at the documentation section for Recurring Invoices. Also take note of the How to set up a cron for HDInvoice section too. Setting up a cron is absolutely NOT mandatory, but it helps ensure that child invoices are created on time.

There is a free WordPress plugin called WP Crontrol that I actually use myself for testing WordPress scheduled events, including creating recurring invoices.

If you want to test that recurring invoices will be correctly created on your site, I recommend installing that plugin. Once installed, you can look at the Cron Events from the Tools Page of your WordPress admin area.

In particular, look for an event with a hook called hdv_scheduler_recurring_invoice. If you mouse over the item, you can select “Run now”. If all goes well, back in HDInvoice you will see that your child invoice has been successfully created!

BONUS: The event arguments will look something like [999, "monthly", -1].

  • The first item is the invoice ID (internal ID, not invoice number).
  • The second is the frequency (weekly, monthly, yearly)
  • And the last is the number of total invoices to make. The -1 in the above example means “infinite” (well, it’s actually 9999, but in practice, the same thing).

Hope this all helps and makes sense!

07 February 2024 — 15:34 support admin - Dylan

Thankyou! I’ll try that plugin and let you know if I run into any trouble.

07 February 2024 — 15:51 thread author - Tammy

Login to reply