Title: Documentation?
Last modified: August 21, 2016

---

# Documentation?

 *  [alordiel](https://wordpress.org/support/users/alordiel/)
 * (@alordiel)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/documentation-37/)
 * Hello there,
 * Can i ask for any documentation. I really can’t get any invoice numbers on the
   invoices I’m e-mailing to the clients. Or this plugin can’t be used for this?
 * [http://wordpress.org/plugins/woocommerce-sequential-invoice-numbers/](http://wordpress.org/plugins/woocommerce-sequential-invoice-numbers/)

Viewing 14 replies - 1 through 14 (of 14 total)

 *  [larsactionhero](https://wordpress.org/support/users/larsactionhero/)
 * (@larsactionhero)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/documentation-37/#post-4339613)
 * hi there,
 * got the same problem. no invoice numbers show up on the invoices.
    we badly need
   a solution for that, any ideas?
 *  Thread Starter [alordiel](https://wordpress.org/support/users/alordiel/)
 * (@alordiel)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/documentation-37/#post-4339614)
 * 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.
 *  [larsactionhero](https://wordpress.org/support/users/larsactionhero/)
 * (@larsactionhero)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/documentation-37/#post-4339615)
 * 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](https://wordpress.org/support/users/gabriel-reguly/)
 * (@gabriel-reguly)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/documentation-37/#post-4339617)
 * Hi alordiel & larsactionhero,
 * Oddly WordPress.org 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.
 * Regards,
    Gabriel
 *  [riki81](https://wordpress.org/support/users/riki81/)
 * (@riki81)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/documentation-37/#post-4339635)
 * 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! 😉
 *  [ole_wilkenburg](https://wordpress.org/support/users/ole_wilkenburg/)
 * (@ole_wilkenburg)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/documentation-37/#post-4339650)
 * 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.
    Thanks
 *  [ole_wilkenburg](https://wordpress.org/support/users/ole_wilkenburg/)
 * (@ole_wilkenburg)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/documentation-37/#post-4339651)
 * [@alordiel](https://wordpress.org/support/users/alordiel/)
    _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?
 *  Thread Starter [alordiel](https://wordpress.org/support/users/alordiel/)
 * (@alordiel)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/documentation-37/#post-4339652)
 * [@ole_wilkenburg](https://wordpress.org/support/users/ole_wilkenburg/)
    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.
 *     ```
       <li>
       	<h3 class="invoice-number-label"><?php _e( 'Invoice Number',  'option-tree' ); ?></h3>
       	<span class="invoice-number">
       		<?php
       		$invoice_number2="your-prefix_";
        		echo $invoice_number2;
       		$invoice_number=wcdn_order_number();
        		?>
        	</span>
       </li>
       ```
   
 * Please tell me if you have any issues with this.
 * [@gabriel](https://wordpress.org/support/users/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.
 *  [ole_wilkenburg](https://wordpress.org/support/users/ole_wilkenburg/)
 * (@ole_wilkenburg)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/documentation-37/#post-4339653)
 * @ alordiel
    Thank you so much! 🙂
 *  Plugin Author [Gabriel Reguly](https://wordpress.org/support/users/gabriel-reguly/)
 * (@gabriel-reguly)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/documentation-37/#post-4339654)
 * [@alordiel](https://wordpress.org/support/users/alordiel/)
 * Yes, you got it correctly.
 * Thanks for helping out the other users 🙂
 * Regards,
    Gabriel
 *  [CSTMCLDSADMN](https://wordpress.org/support/users/cstmcldsadmn/)
 * (@cstmcldsadmn)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/documentation-37/#post-4339668)
 * [@gabriel](https://wordpress.org/support/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.
 * [@alordiel](https://wordpress.org/support/users/alordiel/)
 * 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
 *  [josepp](https://wordpress.org/support/users/josepp/)
 * (@josepp)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/documentation-37/#post-4339669)
 *     ```
       <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' ));
         } ?>
       </span>
       ```
   
 * This worked perfectly for me. Thank you all for the hints!
 * Once again, for clarity:
    `wcdn_get_order_custom_field( '_invoice_number' )`
 * Edit:
    I am using this together with the **Sequential Invoice Numbers** plugin
   and i think, that’s fine for germany.
 *  [stenalines](https://wordpress.org/support/users/stenalines/)
 * (@stenalines)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/documentation-37/#post-4339672)
 * hey!
    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](https://wordpress.org/support/users/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](https://wordpress.org/support/users/gabriel-reguly/)
 * (@gabriel-reguly)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/documentation-37/#post-4339674)
 * @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?
 * Regards,
    Gabriel

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Documentation?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woocommerce-sequential-invoice-numbers.
   svg)
 * [WooCommerce Sequential Invoice Numbers](https://wordpress.org/plugins/woocommerce-sequential-invoice-numbers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-sequential-invoice-numbers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-sequential-invoice-numbers/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-sequential-invoice-numbers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-sequential-invoice-numbers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-sequential-invoice-numbers/reviews/)

 * 14 replies
 * 8 participants
 * Last reply from: [Gabriel Reguly](https://wordpress.org/support/users/gabriel-reguly/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/documentation-37/#post-4339674)
 * Status: not resolved