cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to populate product siteMap url with fall back language when site language is missing

Former Member
0 Likes
642

I am facing one issue with sitemap url population for product. I have multi country and multi language site so if the localization value not present for the product name and associate category then the url for the product are populating like c//p/praduct_code in to the product siteMap, But we have fall back laguage value for the product and category.

When i hit the url in to pdp page, url is populating with fall back language value due to CMSSiteFilter which add one key enable.language.fallback as true in to session.

How can i populate product url in sitemap with fall back language when site language value is missing for product or category.

Accepted Solutions (1)

Accepted Solutions (1)

Marko_salonen
Contributor
0 Likes

Hi,

you could add following in your cronjob : I18NService.setLocalizationFallbackEnabled(true), then it will take the fallback language.

Former Member
0 Likes

Hi Marko, Thanks I have added 18NService.setLocalizationFallbackEnabled(true) in to sitemap product populator and it is working. Thank you very much.

Marko_salonen
Contributor
0 Likes

Good to hear :)

Answers (0)