OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce custom product unit incorrect label: Oro.product_unit.carton.label.full

This topic contains 1 reply, has 2 voices, and was last updated by Andrey Yatsenko Andrey Yatsenko 1 year, 1 month ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #38972

    Jason
    Participant

    Hi,

    I used the API to create a new product unit called Carton. however whenever that unit is displayed in the frontend or backend, oro writes ‘Oro.product_unit.carton.label.full’ instead of Carton or similar.

    I’m guessing I need to create a label for it somewhere. How do I do that or how do I fix this error?

    tia.

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #38973
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    Hi Jason,

    It is required to define the translation in messages.en.yml and jsmessages.en.yml at Resource/translations folder in any bundle.
    Then warm up the translation cache to apply the changes by running

Viewing 1 replies (of 1 total)

The forum ‘OroCommerce’ is closed to new topics and replies.

You will be redirected to [title]. Would you like to continue?

Yes No