{"id":405732,"date":"2023-10-16T05:31:06","date_gmt":"2023-10-16T05:31:06","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=405732"},"modified":"2024-02-22T11:33:32","modified_gmt":"2024-02-22T11:33:32","slug":"add-custom-currency-to-magento-2","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/add-custom-currency-to-magento-2\/","title":{"rendered":"Add Custom Currency to Magento 2"},"content":{"rendered":"\n<p>As we all know Magento 2 does not support <a href=\"https:\/\/webkul.com\/blog\/magento2-bitcoin-crypto-payments-documentation\/\">CryptoCurrency<\/a> as a currency option yet, so here we are going to learn how we can add a new currency.<\/p>\n\n\n\n<p>The very first step to start with is to modify your module&#8217;s registration.php file<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\n\n\\Magento\\Framework\\Component\\ComponentRegistrar::register(\n    \\Magento\\Framework\\Component\\ComponentRegistrar::MODULE,\n    &#039;Webkul_CryptoCurrency&#039;,\n    __DIR__\n);\n\nrequire_once(__DIR__ . &#039;\/Override\/CurrencyBundle.php&#039;);<\/pre>\n\n\n\n<p>In the above code, we have added require_once in order to modify the available currencies<\/p>\n\n\n\n<p>Here is the code for the CurrencyBundle.php file, keep this fine in app\/code\/Vendor\/Module\/Override\/CurrencyBundle.php<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\n\nnamespace Magento\\Framework\\Locale\\Bundle;\n\nclass CurrencyBundle extends DataBundle\n{\n    \/**\n     * @var string\n     *\/\n    protected $path = &#039;ICUDATA-curr&#039;;\n\n    \/**\n     * @var string\n     *\/\n    public function toArray($bundle)\n    {\n        $aux = &#091;];\n        foreach ($bundle as $k =&gt; $v) {\n            $aux&#091;$k] = is_object($v) ? $this-&gt;toArray($v) : $v;\n        }\n        return $aux;\n    }\n\n    \/**\n     * Method to get currency bundle\n     *\n     * @param string $locale\n     * @return array\n     *\/\n    public function get($locale)\n    {\n        $bundle = parent::get($locale);\n        $bundleAsArray = $this-&gt;toArray($bundle);\n        $bundleAsArray&#091;&#039;Currencies&#039;]&#091;&#039;BTC&#039;] = &#091;\n            &#039;BTC&#039;,\n            &#039;Bitcoin&#039;,\n        ];\n        $bundleAsArray&#091;&#039;CurrencyPlurals&#039;]&#091;&#039;BTC&#039;] = &#091;\n            &#039;one&#039; =&gt; &#039;Bitcoin&#039;,\n            &#039;other&#039; =&gt; &#039;Bitcoin&#039;,\n        ];\n        return $bundleAsArray;\n    }\n}<\/pre>\n\n\n\n<p>Now we will add some plugins in order to add currency and its formatting in Magento 2<br>Create a di.xml inside the <strong>etc<\/strong> folder<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?xml version=&quot;1.0&quot;?&gt;\n&lt;config xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot; xsi:noNamespaceSchemaLocation=&quot;urn:magento:framework:ObjectManager\/etc\/config.xsd&quot;&gt;\n\n    &lt;type name=&quot;Magento\\Framework\\Locale\\Config&quot;&gt;\n        &lt;plugin name=&quot;crypto_locale&quot; type=&quot;Webkul\\CryptoCurrency\\Plugin\\LocaleConfig&quot; sortOrder=&quot;1&quot; \/&gt;\n    &lt;\/type&gt;\n\n    &lt;type name=&quot;Magento\\Framework\\App\\Config&quot;&gt;\n        &lt;plugin name=&quot;crypto_config&quot; type=&quot;Webkul\\CryptoCurrency\\Plugin\\ConfigPlugin&quot; sortOrder=&quot;1&quot; \/&gt;\n    &lt;\/type&gt;\n\n    &lt;type name=&quot;Magento\\Framework\\Pricing\\Render\\Amount&quot;&gt;\n        &lt;plugin name=&quot;crypto_framework_pricing_render_amount&quot; type=&quot;Webkul\\CryptoCurrency\\Plugin\\Framework\\Pricing\\Render\\Amount&quot; \/&gt;\n    &lt;\/type&gt;\n\n    &lt;type name=&quot;Magento\\Directory\\Model\\PriceCurrency&quot;&gt;\n        &lt;plugin name=&quot;crypto_directory_model_pricecurrency&quot; type=&quot;Webkul\\CryptoCurrency\\Plugin\\Directory\\Model\\PriceCurrency&quot; \/&gt;\n    &lt;\/type&gt;\n    \n    &lt;type name=&quot;Magento\\Framework\\Locale\\Format&quot;&gt;\n        &lt;plugin name=&quot;crypto_framework_locale_format&quot; type=&quot;Webkul\\CryptoCurrency\\Plugin\\Framework\\Locale\\Format&quot; \/&gt;\n    &lt;\/type&gt;\n&lt;\/config&gt;<\/pre>\n\n\n\n<p>Following the above we need to create 5 plugins as follows<\/p>\n\n\n\n<p>LocaleConfig.php<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\n\nnamespace Webkul\\CryptoCurrency\\Plugin;\n\nclass LocaleConfig\n{\n    \/**\n     * After get allowed currencies\n     *\n     * @param \\Magento\\Framework\\Locale\\Config $config\n     * @param array $currencies\n     * @return array\n     *\/\n    public function afterGetAllowedCurrencies(\\Magento\\Framework\\Locale\\Config $config, $currencies)\n    {\n        return array_merge($currencies, &#091;&#039;BTC&#039;]);\n    }\n}<\/pre>\n\n\n\n<p>ConfigPlugin.php<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\n\nnamespace Webkul\\CryptoCurrency\\Plugin;\n\nclass ConfigPlugin\n{\n    \/**\n     * After get currency config value\n     *\n     * @param \\Magento\\Framework\\App\\Config\\ScopeConfigInterface $subject\n     * @param string $result\n     * @param string $path\n     * @param string $scope\n     * @param string $scopeCode\n     * @return string\n     *\/\n    public function afterGetValue(\\Magento\\Framework\\App\\Config\\ScopeConfigInterface $subject,\n        $result,\n        $path = null,\n        $scope = \\Magento\\Framework\\App\\Config\\ScopeConfigInterface::SCOPE_TYPE_DEFAULT,\n        $scopeCode = null\n    )\n    {\n        if ($path === &#039;system\/currency\/installed&#039;) {\n            return $result . &#039;,&#039; . &#039;BTC&#039;;\n        }\n        return $result;\n    }\n}<\/pre>\n\n\n\n<p>Amount.php<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\nnamespace Webkul\\CryptoCurrency\\Plugin\\Framework\\Pricing\\Render;\n\nuse Magento\\Framework\\Pricing\\PriceCurrencyInterface;\n\nclass Amount\n{\n  public function beforeFormatCurrency(\n    $subject,\n    $amount,\n    $includeContainer = true,\n    $precision = PriceCurrencyInterface::DEFAULT_PRECISION\n  ) {\n    return &#091;$amount, $includeContainer, 4];\n  }\n}<\/pre>\n\n\n\n<p>PriceCurrency.php<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\nnamespace Webkul\\CryptoCurrency\\Plugin\\Directory\\Model;\n\nclass PriceCurrency\n{\n  public function beforeConvertAndRound(\n    $subject,\n    $amount,\n    $scope = null,\n    $currency = null,\n    $precision = \\Magento\\Directory\\Model\\PriceCurrency::DEFAULT_PRECISION\n  ) {\n    return &#091;$amount, $scope, $currency, 4];\n  }\n\n  public function beforeFormat(\n    $subject,\n    $amount,\n    $includeContainer = true,\n    $precision = \\Magento\\Directory\\Model\\PriceCurrency::DEFAULT_PRECISION,\n    $scope = null,\n    $currency = null\n  ) {\n    return &#091;$amount, $includeContainer, 4, $scope, $currency];\n  }\n}<\/pre>\n\n\n\n<p>Format.php<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\nnamespace Webkul\\CryptoCurrency\\Plugin\\Framework\\Locale;\n\nclass Format\n{\n  public function afterGetPriceFormat($subject, $result) {\n    $result&#091;&#039;precision&#039;] = 4;\n    $result&#091;&#039;requiredPrecision&#039;] = 4;\n\n    return $result;\n  }\n}<\/pre>\n\n\n\n<p>Using the above we are able to add a new currency in Magento 2 <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"611\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/screenshot-nft2.vachak.com-2023.10.16-10_31_12-1200x611.png\" alt=\"screenshot-nft2.vachak.com-2023.10.16-10_31_12\" class=\"wp-image-405736\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/screenshot-nft2.vachak.com-2023.10.16-10_31_12-1200x611.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/screenshot-nft2.vachak.com-2023.10.16-10_31_12-300x153.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/screenshot-nft2.vachak.com-2023.10.16-10_31_12-250x127.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/screenshot-nft2.vachak.com-2023.10.16-10_31_12-768x391.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/screenshot-nft2.vachak.com-2023.10.16-10_31_12-1536x782.png 1536w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/screenshot-nft2.vachak.com-2023.10.16-10_31_12.png 1744w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>In the above example, we have added the currency in order to create a NFT <a href=\"https:\/\/store.webkul.com\/magento2-multi-vendor-marketplace.html\">Marketplace<\/a> system.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As we all know Magento 2 does not support CryptoCurrency as a currency option yet, so here we are going to learn how we can add a new currency. The very first step to start with is to modify your module&#8217;s registration.php file In the above code, we have added require_once in order to modify <a href=\"https:\/\/webkul.com\/blog\/add-custom-currency-to-magento-2\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":204,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9121],"tags":[12353,2460,12351],"class_list":["post-405732","post","type-post","status-publish","format-standard","hentry","category-magento-2","tag-cryptocurrency","tag-magento-2","tag-nft-marketplace"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Add Custom Currency to Magento 2 - Webkul Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/add-custom-currency-to-magento-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Add Custom Currency to Magento 2 - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"As we all know Magento 2 does not support CryptoCurrency as a currency option yet, so here we are going to learn how we can add a new currency. The very first step to start with is to modify your module&#8217;s registration.php file In the above code, we have added require_once in order to modify [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/add-custom-currency-to-magento-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-16T05:31:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-22T11:33:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/10\/screenshot-nft2.vachak.com-2023.10.16-10_31_12-1200x611.png\" \/>\n<meta name=\"author\" content=\"Sagar Bathla\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sagar Bathla\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/add-custom-currency-to-magento-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/add-custom-currency-to-magento-2\/\"},\"author\":{\"name\":\"Sagar Bathla\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/6fcd235eb54dfa1a0fbfc662b8618463\"},\"headline\":\"Add Custom Currency to Magento 2\",\"datePublished\":\"2023-10-16T05:31:06+00:00\",\"dateModified\":\"2024-02-22T11:33:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/add-custom-currency-to-magento-2\/\"},\"wordCount\":158,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/add-custom-currency-to-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/10\/screenshot-nft2.vachak.com-2023.10.16-10_31_12-1200x611.png\",\"keywords\":[\"Cryptocurrency\",\"Magento 2\",\"NFT Marketplace\"],\"articleSection\":[\"Magento 2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/add-custom-currency-to-magento-2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/add-custom-currency-to-magento-2\/\",\"url\":\"https:\/\/webkul.com\/blog\/add-custom-currency-to-magento-2\/\",\"name\":\"Add Custom Currency to Magento 2 - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/add-custom-currency-to-magento-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/add-custom-currency-to-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/10\/screenshot-nft2.vachak.com-2023.10.16-10_31_12-1200x611.png\",\"datePublished\":\"2023-10-16T05:31:06+00:00\",\"dateModified\":\"2024-02-22T11:33:32+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/add-custom-currency-to-magento-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/add-custom-currency-to-magento-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/add-custom-currency-to-magento-2\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/screenshot-nft2.vachak.com-2023.10.16-10_31_12.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/screenshot-nft2.vachak.com-2023.10.16-10_31_12.png\",\"width\":1744,\"height\":888,\"caption\":\"screenshot-nft2.vachak.com-2023.10.16-10_31_12\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/add-custom-currency-to-magento-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Add Custom Currency to Magento 2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/6fcd235eb54dfa1a0fbfc662b8618463\",\"name\":\"Sagar Bathla\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/06e15f8abbf8155cc1124049027a7849db68d785d26bd10e4932883b83def757?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/06e15f8abbf8155cc1124049027a7849db68d785d26bd10e4932883b83def757?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Sagar Bathla\"},\"description\":\"Sagar Bathla, a Magento Certified Developer, is an expert in Magento 2 development and eCommerce platforms. He specializes in creating cutting-edge Headless PWA solutions, ensuring scalability and exceptional user experiences. Sagar's focus on innovative technology results in transformative digital growth.\",\"url\":\"https:\/\/webkul.com\/blog\/author\/sagar-bathla901\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Add Custom Currency to Magento 2 - Webkul Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/add-custom-currency-to-magento-2\/","og_locale":"en_US","og_type":"article","og_title":"Add Custom Currency to Magento 2 - Webkul Blog","og_description":"As we all know Magento 2 does not support CryptoCurrency as a currency option yet, so here we are going to learn how we can add a new currency. The very first step to start with is to modify your module&#8217;s registration.php file In the above code, we have added require_once in order to modify [...]","og_url":"https:\/\/webkul.com\/blog\/add-custom-currency-to-magento-2\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2023-10-16T05:31:06+00:00","article_modified_time":"2024-02-22T11:33:32+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/10\/screenshot-nft2.vachak.com-2023.10.16-10_31_12-1200x611.png","type":"","width":"","height":""}],"author":"Sagar Bathla","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Sagar Bathla","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/add-custom-currency-to-magento-2\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/add-custom-currency-to-magento-2\/"},"author":{"name":"Sagar Bathla","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/6fcd235eb54dfa1a0fbfc662b8618463"},"headline":"Add Custom Currency to Magento 2","datePublished":"2023-10-16T05:31:06+00:00","dateModified":"2024-02-22T11:33:32+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/add-custom-currency-to-magento-2\/"},"wordCount":158,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/add-custom-currency-to-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/10\/screenshot-nft2.vachak.com-2023.10.16-10_31_12-1200x611.png","keywords":["Cryptocurrency","Magento 2","NFT Marketplace"],"articleSection":["Magento 2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/add-custom-currency-to-magento-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/add-custom-currency-to-magento-2\/","url":"https:\/\/webkul.com\/blog\/add-custom-currency-to-magento-2\/","name":"Add Custom Currency to Magento 2 - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/add-custom-currency-to-magento-2\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/add-custom-currency-to-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/10\/screenshot-nft2.vachak.com-2023.10.16-10_31_12-1200x611.png","datePublished":"2023-10-16T05:31:06+00:00","dateModified":"2024-02-22T11:33:32+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/add-custom-currency-to-magento-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/add-custom-currency-to-magento-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/add-custom-currency-to-magento-2\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/screenshot-nft2.vachak.com-2023.10.16-10_31_12.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/screenshot-nft2.vachak.com-2023.10.16-10_31_12.png","width":1744,"height":888,"caption":"screenshot-nft2.vachak.com-2023.10.16-10_31_12"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/add-custom-currency-to-magento-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Add Custom Currency to Magento 2"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/6fcd235eb54dfa1a0fbfc662b8618463","name":"Sagar Bathla","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/06e15f8abbf8155cc1124049027a7849db68d785d26bd10e4932883b83def757?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/06e15f8abbf8155cc1124049027a7849db68d785d26bd10e4932883b83def757?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Sagar Bathla"},"description":"Sagar Bathla, a Magento Certified Developer, is an expert in Magento 2 development and eCommerce platforms. He specializes in creating cutting-edge Headless PWA solutions, ensuring scalability and exceptional user experiences. Sagar's focus on innovative technology results in transformative digital growth.","url":"https:\/\/webkul.com\/blog\/author\/sagar-bathla901\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/405732","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/204"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=405732"}],"version-history":[{"count":3,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/405732\/revisions"}],"predecessor-version":[{"id":423837,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/405732\/revisions\/423837"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=405732"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=405732"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=405732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}