0

app/code/Vendor/Paypal/etc/adminhtml/system.xml

<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
    <system>
        <section id="web" translate="label" type="text"  showInDefault="1"
                 showInWebsite="1" showInStore="1">
            <group id="unsecure" translate="label" type="text" showInDefault="1" showInWebsite="1" showInStore="1">
                <field id="frontend_url" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Frontend Url</label>
                </field>
            </group>
        </section>
    </system>
</config>

app/etc/config.php

'system' => [
        'default' => [
            'web' => [
                'unsecure' => [
                    'frontend_url' => '${FRONTEND_URL}us/'
                ]
            ]
        ]
    ]

    'websites' => [
        'us' => [
             'web' => [
                 'unsecure' => [
                     'frontend_url' => '${FRONTEND_URL}us/'
                 ]
             ],
             'carriers' => [
                 'freeshipping' => [
                     'active' => 1
                 ]
             ]
         ],
         'uk' => [
             'web' => [
                 'unsecure' => [
                     'frontend_url' => '${FRONTEND_URL}uk/'
                 ]
             ],
             'carriers' => [
                 'freeshipping' => [
                     'active' => 0
                 ]
             ]
         ],
         'eu' => [
             'web' => [
                 'unsecure' => [
                     'frontend_url' => '${FRONTEND_URL}eu/'
                 ]
             ],
             'carriers' => [
                 'freeshipping' => [
                     'active' => 0
                 ]
             ]
         ]
     ]

In admin it only appears in default scope also it has [global] scope in field.

Question - why i am not seeing this field in other website & store views ? I am always getting this "us" frontend url not store specific. why ?

5
  • config.php? Did you run bin/magento app:config:dump after your change? Commented Jul 6, 2021 at 5:33
  • config.php? Yes & this changes are already there in site, i have not made changes. The issue is i am not getting proper frontend url as per the scope. Commented Jul 6, 2021 at 5:35
  • Also the field is not visible any where (any scope) except default scope Commented Jul 6, 2021 at 5:35
  • any thoughts on this ? Commented Jul 6, 2021 at 6:44
  • You can add eighter manually on config.php or use magento command above Commented Jul 6, 2021 at 6:47

0

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.