Skip to content

Unable to inject custom currency at install time. #9

@msaxon

Description

@msaxon

Magento Version: 2.3.5
Plugin Version: 1.1.3

Good afternoon,

I have spent a good amount of time trying to get a custom currency to run at install time following the instructions in the README. I edit the di.xml file to include:

<type name="EcommPro\CustomCurrency\Model\Config"><arguments><argument name="currencies" xsi:type="array"><item name=“EXAMPLE” xsi:type="array"><item name="code" xsi:type="string">EXAMPLE</item><item name="singular" xsi:type="string">Example</item><item name="plural" xsi:type="string">Examples</item></item></argument></arguments></type>

After that, I have tried all of the following, but none of them cause the currency to show in the currency config screen or the ecom custom currency screen.

  • bin/magento cache:clean
  • bin/magento cache:flush
  • bin/magento setup:upgrade
  • bin/magento setup:di:compile
  • deleting the changed generated files in the /generated folder

I am able to run bin/magento dev:di:info "EcommPro\CustomCurrency\Model\Config" and see the example json as the value of currences, but nothing is changing in the UI.

I'm not a php expert, but I saw that this commit removed reference the currencies variable, maybe that is the issue? Any help to get this working is appreciated. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions