Skip to content

Custom invoice numbers break multi-language website #75

@jan-herman

Description

@jan-herman

Hi there,
I have a multi-language website (default language: czech, secondary: english) and I followed this cookbook recipe to add custom invoice numbers to orders: https://merx.wagnerwagner.de/cookbooks/custom-invoice-numbers.

In czech everything works as expected, but every time order is submitted in english, order.en.txt is created with following content:

Note: 

----

Invoicedate: 2024-03-12T23:11:34+00:00

----

Invoicenumber: 202400001

While in order.cs.txt the Invoicenumber is missing.

I tried specifying locale like this, but that didn't work either.

$orderPage->update([
    'invoiceNumber' => (string) $invoice_number,
], 'cs');

Am I missing something or is this a bug related to #62?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions