Skip to content

magento man

How to get all currency codes whether enabled or not in magento 2

Im trying to add custom atribute ‘currency codes’ by creating ‘Vendor/Module/Setup/Patch/Data/PriceCrncyCodeAttribute.php’. declare(strict_types=1); namespace VendorModuleSetupPatchData; use MagentoEavModelEntityAttributeScopedAttributeInterface; use MagentoEavSetupEavSetup; use MagentoEavSetupEavSetupFactory; use MagentoFrameworkSetupModuleDataSetupInterface; use MagentoFrameworkSetupPatchDataPatchInterface; use MagentoFrameworkSetupPatchPatchRevertableInterface; use MagentoStoreModelStoreManagerInterface; use MagentoFrameworkAppState; class PriceCrncyCodeAttribute implements DataPatchInterface, PatchRevertableInterface { /** * @var ModuleDataSetupInterface… Read More »How to get all currency codes whether enabled or not in magento 2