Automatic matching of site language and Currency

The first impression of a customer who enters a store in daily life is very valuable, that impression can cause the customer to leave the store immediately or strengthen the perception of shopping. This is the case with e-commerce sites, and this issue is even more important for e-commerce. In physical stores, a sales representative may be able to pull the backward customer back to the store with a single move, but this is not possible in e-commerce.

Thanks to the visitor recognition feature, it is determined which language preferred sites on the customer’s computer are visited the most. According to this determination, the language option and currency preference of the site will be determined. As soon as the customer enters the e-commerce site, the site opens with the appropriate language and currency option. If the customer wants to see the page in a different language option, he can make this change later, and if he wants to change the currency later, he can change it.

Even if the e-commerce site broadcasts globally, as visitors are welcomed in their own language and currency, their belonging to the site will be strengthened and their frequency of shopping will increase. Of course, the only thing that the customer cares about will not be the opening language and currency, but any convenience provided to the customer will not go to waste.

Ability to Define Rules
According to the language preferences of the customers, rules are created among the language options and currencies served by the e-commerce site. The opening language and currency are determined within these rules.

To express with an example;

If the e-commerce site serves with Turkish, English and German language options, if the currencies used on the site are TRY, USD and EUR.
Let the e-commerce site administrator define the rules as follows;

  • If the customer’s detected language is Turkish, the site should be opened in Turkish, and the default currency will be TRY.
  • If the language is German, the site should be opened in German, with EUR as the default currency.
  • If the language is English, the site should be opened in English, the default currency is USD.
  • If the language is other than these languages, let the site be opened in English and the default currency is USD.

Within these rules, for each language, the welcome language and opening currency will automatically greet the customer.

Can you share a Velo code sample with me on this? Thank you for your support.

See Wix Tutorial: Show content based on users country for one possible way to do this.

I found a solution to this problem by redirecting the dropdown menu values to the main page of the site in that language. When the language and currency is selected on the button, the home page opens again with the relevant language and currency. Until the language is changed throughout the site, the product prices will appear in the new currency.
Hope it is useful.

First, add multilingual support and a currency converter to your site. Set the menus added to the header to be hidden in the properties panel.


Add to MasterPage.js code


import wixLocation from ‘wix-location’ ;

$w . onReady ( function () {
$w ( “#languageCurrency” ). onChange (( event ) => {
let url = $w ( ‘#languageCurrency’ ). value ;
wixLocation . to ( url ). target = “_blank” ;
});
});


Add a dropdown input field called “languageCurrency” in the Page Title section to select the language and currency.

Manage Options
Add Multiple Options
Paste the code below.

£ EN,https://www. yoursite .com/?lang=en&currency=GBP
$ EN,https://www.yoursite.com/?lang=en&currency=USD
€ DE,https://www.yoursite.com/?lang=de&currency=EUR
[u]₺ TR,https://www.yoursite.com/?currency=TRY[/u]
€ FR,https://www.yoursite.com/?lang=fr&currency=EUR
kr SV,https://www.yoursite.com/?lang=sv&currency=SEK

Don’t forget to change " yoursite ".com.
(Site native language:TR)

1 Like