• Resolved lukikrew

    (@lukikrew)


    Hello, i want to make my number format this way:

    [invoice_year]-[invoice_month]-[invoice_day]-[document_number]-Rechnung [order_number]

    [order_number] -> the number from woocommerce
    [document_number] -> Number from the invoice

    But both of the codes arent working. when i use order_number it shows the ordernumber from woocommerce as well as the number from invoice. i want to seperate them. hope you understand, sorry for my awful english 😀

Viewing 1 replies (of 1 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi! You didn’t specify where you put the respective placeholders (prefix / suffix), but the [document_number] placeholder wouldn’t work because that’s the primary number that is being formatted – this placeholder does not exist at all for this reason.

    Your format [invoice_year]-[invoice_month]-[invoice_day]-[document_number]-Rechnung [order_number] can be split up around the document number with the following prefix/suffix:

    Prefix: [invoice_year]-[invoice_month]-[invoice_day]-
    Suffix: -Rechnung [order_number]

    Note that for testing you will need to create a new invoice (delete the old one or create a new order entirely), as changes to the format are not applied to existing orders.

Viewing 1 replies (of 1 total)
  • The topic ‘SHORTCODES for number format’ is closed to new replies.