4

So, in Magento 2 under:

Stores > config > General > Store Email addresses

I want to edit the Sales Representative email address, however, it seems to be disabled - the store is currently set into single store mode. I'm running Magento 2.2.5 on a php7.1 box in production mode.

I've not been able to modify these email addresses before, if I remove the disabled via the inspect DOM modifier, I can edit them and then on save it resets to the example .... but updates the database.

Here's a quick screengrab.

enter image description here

I simply can't edit them, I'm at a loss, I don't know why it works in a local environment but doesn't work on the server.

I'd just like to point out it works on a local machine but not on the live one.

4
  • is there any custom module related to toggleValueElements OR adminhtml/tools.jsJS?
    – kunj
    Commented Aug 30, 2018 at 10:33
  • Nope. Not this, and just point out again it works locally but not on live.
    – andy jones
    Commented Aug 30, 2018 at 10:56
  • 1
    did you done required commands like static content deploy and cache flush?
    – kunj
    Commented Aug 30, 2018 at 11:17
  • yes. Redeployed after disabling modules to no affect.
    – andy jones
    Commented Aug 30, 2018 at 13:07

1 Answer 1

4

So. If you come across this issue, its related to your env.php file. The config has been exported to the env and is overwriting the admin area meaning you can't edit it.

    trans_email' => [
            'ident_custom1' => [
                'email' => '[email protected]',
                'name' => 'Custom 1 Info'
            ],
            'ident_custom2' => [
                'email' => '[email protected]',
                'name' => 'Custom 2 Info'
            ],
            'ident_general' => [
                'email' => '[email protected]',
                'name' => 'Owner'
            ],
            'ident_sales' => [
                'email' => '[email protected]',
                'name' => 'Sales'
            ],
            'ident_support' => [
                'email' => '[email protected]',
                'name' => 'CustomerSupport'
            ]
        ],

If anyone has the same issue know it will be here ^_^

If you decide to remove or edit this bit of code. You will have to execute bin/magento setup:upgrade or bin/magento app:config:import after modifying it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.