Alison Teitel
Forum Replies Created
-
AuthorPosts
-
Mark as resolved. I’ve made my modifications to work around this. Perhaps you could consider this as a feature request.
That worked very nicely. I didn’t need to use the callback, although I might use it later. Upon the creation of my invoice I used your wpinv_user_invoice_notification() function.
Passing it the newly created invoice ID was all I needed to do after a successful creation.
Maybe include that in your list of developer functions as you continue to publish your documentation.
Thanks again for your help!
The “Resend Invoice” button sent out the invoice, but I need it to send after a successful call to wpinv_insert_invoice().
The invoices are created just fine and appear in the user’s dashboard, but no email gets sent even though that checkbox is checked. As I said before, when the below call includes the “user_note”, a user note email gets sent out.
I’ll include my call here.
All these variables are present and accurate. I populate a lot of these fields with ACF.
$data = array( 'status' => 'wpi-pending', 'user_id' => $practice_userid, 'cart_details' => $invoice_items, 'user_info' => array( 'first_name' => get_field("practice_owner_first_name", $practice_id), 'last_name' => get_field("practice_owner_last_name", $practice_id), 'phone' => get_field("practice_owner_phone", $practice_id), 'address' => get_field("practice_billing_address_1", $practice_id) . ' ' . get_field("practice_billing_address_2", $practice_id), 'city' => get_field("practice_billing_city", $practice_id), 'country' => 'US', 'state' => get_field("practice_billing_state", $practice_id), 'zip' => get_field("practice_billing_postal_code", $practice_id), 'company' => get_the_title($practice_id), 'vat_number' => '', 'discount' => '' ), 'due_date' => '2019-11-20', 'private_note' => 'assignment_id=' . $assignment_id, ); $invoice = wpinv_insert_invoice( $data, true );
There is proprietary code and personal information that I can’t give access out to a third party without us drawing up an NDA of some kind and I’m not even sure that is an option.
I included the screenshot of those settings and I can provide you screenshots to whatever else you need to see in the back end.
I’m sure you can accommodate us this way. It might take a little longer, but it might be the only option.
You should be able to supply a short list of debugging steps or things to check out. I’ll check them and get back to you.
Thanks again.
Just tell me where to look in the UI. I can’t give out access. I will be happy to screenshot whatever you need to see or check settings and report them here.
-
AuthorPosts