celestapp
Forum Replies Created
-
I’m not sure what the code should look then. At least it’s not working for me (replacing: . ‘, ‘ . with ‘and’ is not working either)
add_filter(‘woe_get_order_value_custom_address’,function ($value, $order,$fieldname) { $value = $order->get_shipping_address_1() . ‘, ‘ . $order->get_meta("shipping_house_number") . ‘, ‘ . $order->get_meta("shipping_house_number_suffix") . ‘, ‘ . $order->get_shipping_postcode() . ‘, ‘ . $order->get_shipping_city(); return $value; },10,3);
Ah great, I can just press the invoice sign on the right and it creates one. Thanks for the help.
Okay no I don’t have that error in the logs. I’m not sending any subscription renewal email. Some customers have a weekly subscription for multiple years in a row. That’s too much ‘spam’ in their mailbox. However, the plugin is creating for some zero payment orders invoices, like this customer: https://paste.pics/7573a201a4bea567801310e8b389ea9e (there was a period in which it stopped creating invoices too).
However, for some not like this one: https://snipboard.io/z0mXNU.jpg
So you have to send an email with the invoice? I really don’t want to do that since my customers will then constantly be reminded about the costs of the subscription.
Isn’t there any other way to export the invoice numbers?
I don’t think it’s working. I added the code as a snippet to my website.
Do I need any further settings within the pdf plugin and my email settings? It seems to be kind of random when an order gets an invoice number in general:
https://www.weeklyflower.nl/invoice-number-2/
https://www.weeklyflower.nl/invoice-number-3/
https://www.weeklyflower.nl/invoice-number-4/
https://www.weeklyflower.nl/invoice-number-5/At this moment I have the PDF invoice attach settings set to:
– new order processed
– order completed
– customer renewal invoice
– new order (admin)I’m only sending emails for a new order being processed.
However I assume that with the code you placed above it should be possible to create the invoice number based on ‘switching a subscription’? Is there any code that I could use to get the invoice number of all orders with a status of being processed or completed? Renewal or not?
No I did not. Is this necessary? Do customers need to receive an email with the PDF in order to be able to download the invoice number with _wcpdf_invoice_number? Because the PDF is always made and the number is there it’s only not exportable.
If so, I did not send those mails and I adjusted the settings to send the renewal invoice. So I assume it will work in the future? However, is there a way in which I can extract the invoice numbers of renewal orders in the past?
You can also see it in orders:
https://www.weeklyflower.nl/wp-content/uploads/2020/06/invoice-number.jpgThe arrow on the left side shows that there is no invoice number visible for a renewal order. When clicking on the pdf file of the invoice (right arrow) there does appear an invoice number. So the numbering of the invoices is fine.
The orders where there are no invoice number visible in the order page can not be exported with the _wcpdf_invoice_number meta.
I’m using Woocommerce subscriptions.