Support » Plugin: WooCommerce Sequential Invoice Numbers » Documentation?

Viewing 14 replies - 1 through 14 (of 14 total)
  • hi there,

    got the same problem. no invoice numbers show up on the invoices.
    we badly need a solution for that, any ideas?

    Hi larsactionhero, I gave up this plug-in. After all I stared using the order number as an invoice number. Just put some prefix like “inv_”+order number or more complicated: “prefix”+ordernumber+”something else”. This will be in the same time different from your order number and will give you an unique invoice number. But you need to play a bit with the code.

    hi alordiel,

    thanks for your reply.
    The problem is, I’m located in germany and the shop also, and invoices in germany have to have sequential invoice numbers, which is required by law.
    Maybe i have to look after my own solution. 🙁

    Anyway, thanks for your message! 🙂

    Plugin Author Gabriel Reguly


    Hi alordiel & larsactionhero,

    Oddly does not sent me any email about your messages.

    I have known about your messages by chance, just because larsactionhero had posted a message at other support thread.

    You will need to add a field at your templates to display the invoice numbers as WooCommerce by default does not have it.

    Once I have the time I plan to update the documentation to make clear about how to do it.


    Hi, please let us know hot to add the invoice number to the invoice template php file.
    Please, as soon as possible… my customer wants sell using WooCommerce. Everything’s ready, except this. But for law reasons, as in Germany (larsactionhero user) also in Italy we have to create a sequential invoice number.

    Thanks a lot! 😉

    Hi, I also hope for a solution! Please post here a way to add the number. I have WooCommerce Print Invoices & Delivery Notes and would like to add the number there.

    Just put some prefix like “inv_”+order number or more complicated: “prefix”+ordernumber+”something else”. This will be in the same time different from your order number and will give you an unique invoice number. But you need to play a bit with the code.

    Can you please explain this a little closer to unexperienced coder?

    I included the following code in print-invoice.php file located in my-theme-name/woocommerce/print (this path is in case that you keep your woocommerce template files away from the plugins folder. if not so you will lose any changes of the file upon plugin’s update) And I’m using woocommerce-delivery-notes plugin so the file above belongs to this plugin.

    	<h3 class="invoice-number-label"><?php _e( 'Invoice Number',  'option-tree' ); ?></h3>
    	<span class="invoice-number">
     		echo $invoice_number2;

    Please tell me if you have any issues with this.

    @gabriel Reguly
    I checked your code and presume that the correct way to get an invoice number of an order is by:

    $invoice_number = get_post_meta( $post_id, '_invoice_number', true );

    But i haven’t tested it yet.

    @ alordiel
    Thank you so much! 🙂

    Plugin Author Gabriel Reguly



    Yes, you got it correctly.

    Thanks for helping out the other users 🙂


    @gabriel Reguly

    Hi, I need help please. I can’t find the plugin so i uninstalled it. Does it work? yes- no? I am from germany and I really need these invoice numbers.


    Where do I put the code please? I am not unexperienced but some things are still not clear. Where do i find this print-invoice.php?

    I do own an online shop and it would be great to get help soon!

    Thanks in advance

    <h3 class="order-number-label"><?php wcdn_template_title(); ?></h3>
    <span class="order-date">
      <?php if( wcdn_get_template_type() == 'invoice' ) {
        echo("Nr. " . wcdn_get_order_custom_field( '_invoice_number' ));
      } ?>

    This worked perfectly for me. Thank you all for the hints!

    Once again, for clarity:
    wcdn_get_order_custom_field( '_invoice_number' )

    I am using this together with the Sequential Invoice Numbers plugin and i think, that’s fine for germany.

    tell me if i am wrong but this plugin is just using the order number to create the invoice number is that right?
    like @riki81 mentioned the order number is not the same like the invoice number. in some countries you need a serial number for the invoices.

    Right now it looks like the invoice number is created when the order is placed. We need a Serial number when the invoice is created. lets say someone places an order but dont pay? (for example: bank transfer).

    i hope you guys understand me because english is not my native language

    Plugin Author Gabriel Reguly


    @steanlines, good point!

    Do you happen to know if a invoice is created only after an order is paid, i.e. the order status is changed to processing?


Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Documentation?’ is closed to new replies.