OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – How do I? Questions How can I change localization options in migration seeds?

This topic contains 3 replies, has 2 voices, and was last updated by  Adam 5 years, 7 months ago.

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

  • Creator
    Topic
  • #29728

    Adam
    Participant

    Hi,

    I would like to change the default location, timezone under settings:

    http://crm/config/system/platform/localization

    Is there any way to change it into migration seeds or might be even better to update them? So every time when I will be run ORO CRM installation I will get my own localization settings.

    Regards,
    Adam

    • This topic was modified 5 years, 7 months ago by  Adam.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #29730

    Adam
    Participant

    I have just found command like this one:

    Can I override settings from this command or can I create my own command?

    • This reply was modified 5 years, 7 months ago by  Adam.
    • This reply was modified 5 years, 7 months ago by  Adam.
    #29733

    Andrey Yatsenko
    Moderator

    You can create a data migration that will implement Symfony\Component\DependencyInjection\ContainerAwareInterface and just save another value to config using config manager.

    Probably you need to set some of this keys
    https://github.com/oroinc/platform/blob/master/src/Oro/Bundle/LocaleBundle/Model/LocaleSettings.php#L245-L286
    just search in class by “$this->configManager->get” to know what keys to save.

    #29734

    Adam
    Participant

    Sorted out Cheers.

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

The forum ‘OroCRM – How do I? Questions’ is closed to new topics and replies.

Back to top