Quantcast
Channel: Using Optimizely Platforms
Viewing all articles
Browse latest Browse all 8020

BestBets not working when defined for a particular language

$
0
0

Hi,

Issue: BestBets are not working when defined for a particular language.

Context:

  1. Have a website with series of languages enabled like (da-DK, de-DE, etc).
  2. The culture name is in the format languagecode2-country/regioncode2.
  3. Define best bets for a language (https://www.screencast.com/t/pNO5PSr2ff).

When creating a search query, a language (EPiServer.Find.Language) is determined based on the CultureInfo [for "de-DE" CultureInfo this results in Language(nameof (German), "german", "de", "german", "german_synonym")].

Later on, when best bets are loaded and added to the search query, the content of the best bet is loaded via CommerceBestBetSelector which uses the EPiServer.Find.Language.Suffix  to build the CultureInfo (method GetRequestedLanguage(string suffix)). Due to this fact, the content is loaded actually using the fallback master language because there's no content published on "de" CultureInfo

Example of FIND Query https://www.screencast.com/t/SeTz9opi


Viewing all articles
Browse latest Browse all 8020

Trending Articles