- [Case Studies](https://www.mergado.com/category/case-studies)
- [eCommerce tips](https://www.mergado.com/category/ecommerce-tips)
- [Online Store Solutions and Platforms](https://www.mergado.com/category/online-store-solutions-and-platforms)
- [Mergado Pack](https://www.mergado.com/category/mergado-pack)
- [Mergado tips](https://www.mergado.com/category/mergado-tips)
- [Mergado News](https://www.mergado.com/category/mergado-news)
- [eCommerce News](https://www.mergado.com/category/ecommerce-news)
- [How to use Mergado](https://www.mergado.com/category/how-to-use-mergado)
- [Interviews with e‑commerce gurus](https://www.mergado.com/category/interviews-e-commerce-gurus)
- [Extensions](https://www.mergado.com/category/apps-bidding-image-marketing-and-more)
- [Expansion with Mergado](https://www.mergado.com/category/expansion-with-mergado)
- [Mergado Lifestyle](https://www.mergado.com/category/mergado-lifestyle)
 



 

 1. [  Home  ](https://www.mergado.com/)
2. [     Mergado Blog  ](https://www.mergado.com/blog)
3. <a class="flex items-center gap-2 hover:underline" href="" itemid="" itemprop="item" itemscope="" itemtype="https://schema.org/Thing">    **Convert currency conveniently with Mergado** </a>
 
  

 

#  **Convert currency conveniently with Mergado** 

 

 

 [    ![](https://www.mergado.com/sites/default/files/perm/user-avatar/23021961102131189073595481259913287n.jpg)   Lukáš Horák  ](https://www.mergado.com/blog/lukas-horak) 

23. 5. 2019

2 minutes read

 

 

 

 

 

  ![](https://www.mergado.com/sites/default/files/field/image/meny-eng.png)  

With the increasing number of Mergado foreign users, we often get questions on how to simply convert currencies. There are **two** **ways** how to convert the currency in Mergado. Let’s describe them.



 

 

 
                function tableOfContents() {
                  return {
                    headings_menu: [],
                    heading_active: '', // Added to track the active section
                    shouldBeSticky: false,

                    generateToC() {
                      const headings = document.querySelectorAll('.js-article-full-headings h2, .js-article-full-headings h3');
                      let headingMap = {};

                      headings.forEach((heading) => { // Use an arrow function to maintain `this` context
                        // Normalize heading text to remove diacritics, then replace non-alphanumeric characters with dashes
                        var normalizedText = heading.textContent.normalize("NFD").replace(/[\u0300-\u036f]/g, ""); // Remove diacritics
                        var id = heading.id ? heading.id : normalizedText.trim().toLowerCase()
                          .split(' ').join('-').replace(/[^a-z0-9\-]/ig, ''); // Updated regex to replace non-alphanumeric characters
                        headingMap[id] = headingMap[id] !== undefined ? ++headingMap[id] : 0;

                        // Use the updated `id` with diacritics removed for the heading id and the TOC
                        const finalId = headingMap[id] ? `${id}-${headingMap[id]}` : id;
                        this.headings_menu.push({
                          id: finalId,
                          title: heading.textContent,
                          level: heading.tagName.toLowerCase(), // Track heading level
                          active: false, // Initially set active to false
                        });
                        heading.id = finalId;
                      });
                    },

                    checkStickyNeeded() {
                      const ul = this.$el.querySelector('ul');
                      if (ul) {
                        this.shouldBeSticky = ul.scrollHeight < window.innerHeight;
                      }
                    },

                    setActiveHeading() {
                      // disabled not working with active state on click
                      // add @scroll.window="setActiveHeading()" to the parent div

                      // const headings = document.querySelectorAll('.js-article-full-headings h2');
                      // let activeHeading = '';
                      // let closestHeadingDistance = Infinity;

                      // headings.forEach((heading) => {
                      //   const rect = heading.getBoundingClientRect();
                      //   const offset = rect.top - window.innerHeight / 2; // Consider heading in the middle of the screen as active

                      //   if (offset < 0 && Math.abs(offset) < closestHeadingDistance) {
                      //     activeHeading = heading.id;
                      //     closestHeadingDistance = Math.abs(offset);
                      //   }
                      // });

                      // // Update the active state in headings_menu
                      // if (activeHeading !== this.heading_active) {
                      //   this.headings_menu = this.headings_menu.map(item => ({
                      //     ...item,
                      //     active: item.id === activeHeading,
                      //   }));
                      //   this.heading_active = activeHeading;

                      // }
                    },

                    setActiveItem(clickedId) {
                      this.headings_menu.forEach(item => {
                        item.active = (item.id === clickedId);
                      });
                      this.heading_active = clickedId; // Optionally update the heading_active property if used
                    },
                  };
                }
               1. <a :class="{ 'border-r-[3px] border-secondary': item.active, 'text-sm': item.level === 'h3' }" :href="'#' + item.id" class="inline-block text-balance hover:underline p-0.5 pr-3">  — </a>
  



 

With the increasing number of Mergado foreign users, we often get questions on how to simply convert currencies. There are **two** **ways** how to convert the currency in Mergado. Let’s describe them.

## Converting currency is easy

### 1. An element containing a prize does not contain currency

If the element containing the amount to be converted does not contain currency (it is an ordinary digit, e.g. 249), just add **a simple calculation rule**. Use this rule to calculate the amount with **a specific coefficient, or a variable from** [Bidding Fox Elements](https://store.mergado.com/detail/biddingfoxelements/#about) app. BFE is a handy app that adds new elements to Mergado. Some of them contain daily updated coefficients of the exchange rate list.



 

 [  ![](https://www.mergado.com/sites/default/files/perm/paragraph-image/mena-obr1.png)  ](https://www.mergado.com/sites/default/files/perm/paragraph-image/mena-obr1.png) 

**Example**

In the rule (see fig.1), the conversion is 0.123. In the calculation field, is given the variable containing the price times the coefficient — hence: **%G\_PRICE%\*0.123**.



 

 [  ![](https://www.mergado.com/sites/default/files/perm/paragraph-image/mena-obr2-eng.png)  ](https://www.mergado.com/sites/default/files/perm/paragraph-image/mena-obr2-eng.png) 

If Bidding Fox Elements is enabled on this export, it **adds new variables** to that (see fig.2) — instead of the coefficient 0.123, the variable from BFE is used. E.g.: **%G\_PRICE%\*%BFE\_C\_EUR\_US%** (where %BFE\_C\_EUR\_USD% is the variable containing the actual EUR to USD conversion factor).



 

 [  ![](https://www.mergado.com/sites/default/files/perm/paragraph-image/mena-obr3.png)  ](https://www.mergado.com/sites/default/files/perm/paragraph-image/mena-obr3.png) 

### 2. An element containing a prize contains currency

If the element containing the amount to be converted includes the currency (for Google Shopping, Facebook, etc., it is: EUR 249), **it’s not just a number, but a text chain**. In this case, currency conversion requires **a few extra steps**.

**Instructions:**

1. **First, you must temporarily remove the currency** — add a *Find and Replace* rule where you enter currency in the *Find* field (including a space that is before and after the currency) and **replace it with nothing** — so the *Replace* field remains **blank**. This removes the “text” currency, **leaving only the number as the element value**.
2. **Follow the same procedure as in the first method** — add a calculation rule where you recalculate the amount with a specific coefficient or variable from Bidding Fox Elements.
3. **Add a second rule** if needed to **round** **off** the amount (e.g. to tenths).
4. **Fill in the currency** — this time by the *Overwrite* rule, wherein the field for the new value enter the variable containing the converted amount and add the currency to it. For example: **%G\_PRICE% USD**.



 

 [  ![](https://www.mergado.com/sites/default/files/perm/paragraph-image/mena-obr4-eng.png)  ](https://www.mergado.com/sites/default/files/perm/paragraph-image/mena-obr4-eng.png) 

Eliminate the currency conversion problem forever. With Mergado you can do it in a few steps. Take **advantage** of [Bidding Fox Elements](https://store.mergado.com/detail/biddingfoxelements/#about) app to improve your advertising optimization and performance.



 

- [  Elements ](https://www.mergado.com/tag/elements)
 
 [    ![](https://www.mergado.com/sites/default/files/perm/user-avatar/23021961102131189073595481259913287n.jpg)  ](https://www.mergado.com/blog/lukas-horak)###  [ Lukáš Horák ](https://www.mergado.com/blog/lukas-horak) 

Lukáš takes care of most of the Czech and English communication in Mergado. Through blogs, e‑mail, and social networks, he regularly supplies readers with e‑commerce news and news and tips from Mergado. In his time off, he enjoys simple things like badminton, digging the hidden gems of the 80’s, and seafood served with red wine.

 

 

 

 

 

 

 

 

 

## What you *might be interested in next*

 

 [    ![](https://www.mergado.com/sites/default/files/perm/image/ai_boost-1.jpg)  

### What should a proper client context look like for performance specialists?

 

 ](https://www.mergado.com/blog/master-prompt-eshopy-b2c) 

 [    ![](https://www.mergado.com/sites/default/files/perm/image/uawc_cs_en.jpg)  

### How Feed Optimization Unlocked Meta Ads Performance without Increasing Ad Spend

 

 ](https://www.mergado.com/blog/feed-optimization-for-meta-ads) 

 [    ![](https://www.mergado.com/sites/default/files/perm/image/how_to_sell_successfully_on_idealo.jpg)  

### How to Sell Successfully on idealo

 

 ](https://www.mergado.com/blog/successful-sale-on-idealo) 

 

 

 

## Don’t miss *anything*

 Sign up for our newsletter 

   

       

   By logging in, you agree that we will process your data by the [terms of personal data protection](https://www.mergado.com/cookies). 

  Thank you, you have successfully joined our subscriber's list. 

 

 

 
      function ml_webform_success_5807248() {
        var r = ml_jQuery || jQuery
        r('.ml-subscribe-form-5807248 .row-success').show(), r('.ml-subscribe-form-5807248 .row-form').hide()
      }