OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

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 11 months ago.

  • 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 11 months, 1 week 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 11 months, 1 week ago by  Adam.
    • This reply was modified 11 months, 1 week ago by  Adam.
    #29733
    Andrey Yatsenko
    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)

You must be logged in to reply to this topic.

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

Yes No