• 欢迎访问magento4you博客,我们提供magento建站、技术咨询、IT运维、支持培训、二次开发服务及模板定制,联系QQ:283475615
  • Magento入门教程 二次开发 模板定制 联系QQ:283475615
  • magento运营 SEO SEM 数字营销 广告竞价 联系QQ:283475615
  • 如果您觉得本站对你有帮助,那么赶紧使用Ctrl+D 收藏吧!

Magento 2 如何设置实时汇率

Magento入门教程 magento4you 3年前 (2018-09-16) 2240次浏览 0个评论

Magento 2支持多币种多语言,这一点在开源电子商务系统中,一直处于领先地位。

When you are dealing with multiple currencies, you need to keep in mind the currency conversion rates. If you accept payments based on old currency rates, you may lose your profit margin.

It is very important that your currency rates are updated on your store. Magento allows you to set up how frequently you want to update the currency rates.

In this tutorial, you’ll learn how to:

  • Configure Currency Rates Update Settings
  • Update the Currency Rates on Your Store

配置汇率更新设置

Magento 2 gives you the option to update currency rates from one of the three options:

  • Yahoo Finance Exchange
  • Fixer.io
  • Webservicex

You need to specify which option you want to use for currency rates update. You also need to configure the update option you’ve selected.

Step 1: Go to Stores => Configurations (under Settings).

Configurations-submenu-in-Stores-2-1024x508

Step 2: Click on Currency Setup tab from the left sidebar in General configuration settings.

Import-Options-in-Currency-Setup-1024x399

You’ll see Yahoo Finance ExchangeFixer.io and Webservicex sections in the Currency Options page.

Step 3: Expand the section you want to use for currency rate import.

Yahoo-finance-exchange-import-configuration

You’ll see the Connection Timeout in Seconds field in your selected import option.

Set the number of seconds for which your connection stays idle when trying to establish an import connection before it times out.

Step 4: 展开“计划导入设置”.

Scheduled-Import-Settings-1024x422

You’ll need to fill in the following details to schedule currency rates update import:

  • Enabled: Set this to “Yes” to automatically update currency rates.
  • Service: Select the service from where you want to update the currency rates.
  • Start Time: Set the time when your rate import should start.
  • Frequency: Set frequency of the rate updates. You can set the update frequency to:
    • Daily
    • Weekly
    • Monthly
  • Error Email Recipient: Specify an email address, where a notification should be sent if there is an error in the rate import process.
  • Error Email Sender: Set which email should be used to send the error notification.
  • Error Email Template: Set which email template should be used for error notification email.

Step 5: Click on Save Config button to save the currency rate update settings.

You’ll be prompted to refresh invalidated cache types through system pop-up message.

Cache-management-popup-1-1024x236

Follow steps from our tutorial to flush the cache.

For automatic rate updation to work, you need to make sure that Cron settings on your server.

 

更新你店铺的汇率

If you want to update the currency rates on your store, follow these steps:

Step 1: Go to Stores => Currency Rates (under Currency).

Current-Rates-submenu-in-Stores-1024x508

Step 2: You’ll be displayed the Currency Rate page.

Currency-rates-page-1024x313

Here you will see an Import Service setting and a currency list along with text fields. The currencies displayed on this page are the ones you’ve set as Allowed Currencies in the currency options.

You can either update the currency rates automatically or manually.

To update rates automatically, follow Step 3 and then jump to Step 5.

To update rates manually, jump to Step 4.

Step 3: Select the rate provider you want to update currency rates from, using the Import Service drop-down list.

Import-Rates-Automatically-1024x405

Step 4: Fill in the conversion rates for all the currencies you accept on your store.

Update-rates-manually-1024x405

Step 5: Click on Save Currency Rates button to update currency rates.

You’ll be prompted to refresh invalidated cache types through a pop-up message.

Saved-Rates-Cache-Management-1024x240

Follow steps from our tutorial to flush cache in Magento 2.

Your store is now updated with new currency rates. This concludes our tutorial on how to setup currency rates update in Magento 2.

Follow the last part of our currency setup tutorial series to learn how to use different currency symbols in your store.


极客公园 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:Magento 2 如何设置实时汇率
喜欢 (0)
发表我的评论
取消评论

*

code

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址