Create/Enable Option For Different Store View

I have an extension that practically when I change store view I no longer have the possibility to change the text or options.

Look at the photo.

in the main website there are all the options, but when I move to a different store view, in the case of the "English" photo the options are no longer available, is there a way to enable them in all the store views? Thank you!

enter image description here

Solutions

You can override the system.xml from the extension in a custom module to add showInStore="1".

Vendor/ModuleName/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="SECTION_ID_TO_MODIFY">
            <group id="GROUP_ID_TO_MODIFY">
                <field id="FIELD_ID_TO_MODIFY" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1"">
                </field>  
            </group>
        </section>
    </system>
</config>

Don't forget to override the extension module

Vendor/ModuleName/etc/module.xml

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
    <module name="Vendor_YourModule" setup_version="1.0.0">
        <sequence>
            <module name="EXTENSION_MODULE_TO_MODIFY"/>
        </sequence>
    </module>
</config>

Then, maybe you will have to modify the getConfig function to get the value by store.

Tags: Magento 2.x

Similar questions

How to make Magento 'Show out of stock products' option different per website/store view?
I have a retail and a trade site setup in Magento (different websites and store views). The retail site shows only in stock products, but on the trade site it needs to show out of stock products as well. I was looking for a way to override the global admin option in the back office, or to modify the collection directly on the .phtml file. Possibly ...
Get attribute admin option value if you have option Id or store view value
I'm trying since hours but I'm not able to load the admin option value of a certain attribute. Although I have enough information like option_id and store view value: My attribute (name: color) option table looks like Following gives me only the option ids: I have the Default store view value (i.e. white) and need the assigned Admin value. Unfortun...
Is any way to create different root categories for different store
I have two store one is English and another is France.I have multiple category in English store.But I want to create these all category in France Language for France store. Manually this is possible for me to change store and change the category name English to France. This is working perfect. Can I create different root category for a different st...
Store view and admin view show different tax for a product
We have one product with 10% vat in our store. In the admin view the tax is calculated and displayed correctly. But the store view shows the product with 24% vat. Would anyone have any ideas on what might cause the problem?
Show Different prices for store views (magento prices at store view level)
How can we setup different prices for different stores in a website can anyone help me on this
Using {{store}} directive to get url for different store view
Scenario: In a static block, I need to generate the url for a specific page but not in the current store view, but to a specific store view / website. Question: Is there a combination of parameters that can be passed to the {{store}} directive to make this happen? Something like {{store _direct="page-here" store_code=some-code}} or instead of store...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.