WordPress.org

Forums

WooCommerce Sequential Invoice Numbers
Documentation? (15 posts)

  1. Al
    Member
    Posted 1 year ago #

    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/

  2. larsactionhero
    Member
    Posted 1 year ago #

    hi there,

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

  3. Al
    Member
    Posted 1 year ago #

    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.

  4. larsactionhero
    Member
    Posted 1 year ago #

    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! :)

  5. Gabriel Reguly
    Member
    Plugin Author

    Posted 1 year ago #

    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

  6. riki81
    Member
    Posted 1 year ago #

    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! ;-)

  7. ole_wilkenburg
    Member
    Posted 1 year ago #

    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

  8. ole_wilkenburg
    Member
    Posted 1 year ago #

    @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?

  9. Al
    Member
    Posted 1 year ago #

    @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 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.

  10. ole_wilkenburg
    Member
    Posted 1 year ago #

    @ alordiel
    Thank you so much! :-)

  11. Gabriel Reguly
    Member
    Plugin Author

    Posted 1 year ago #

    @alordiel

    Yes, you got it correctly.

    Thanks for helping out the other users :)

    Regards,
    Gabriel

  12. CSTMCLDSADMN
    Member
    Posted 1 year ago #

    @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

    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

  13. josepp
    Member
    Posted 1 year ago #

    <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.

  14. stenalines
    Member
    Posted 1 year ago #

    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 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

  15. Gabriel Reguly
    Member
    Plugin Author

    Posted 1 year ago #

    @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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.