Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Bug Report: Frontend Default Language Is Not Working Rate Topic   - - - - -

 
  • newertebat
  • Advanced Member
  • Members
  • Join Date: 05-Jan 13
  • 85 posts

Posted 24 June 2021 - 05:43 AM #1

we are setting Frontend default language to "fa" (persian language)
and "EN" is second language.
but always in first visit (without history and cache and in all browsers in PC or mobile,...) shows frontend with "EN" Language.
we was searching this issue in forum and tested many of methods to resolve this problem (like; some change in fn.init.php) but could not fix it yet.

 

notice: most of the methods in forum were for old versions of cs-cart.

what should we do?

version: 4.13.1.SP2



 

Posted 09 May 2022 - 09:12 AM #2

Hi, you check it in incognito mode of chrome?

what setting in default "SEO" addons?



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 22832 posts

Posted 10 May 2022 - 01:13 PM #3

You should check the fn_init_language function in the fn.init.php file

 

The default language is used if

 

- there is no sl parameter is request uri

- language is not saved is session

- there is no ability to detect browser language


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 1210     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 4025     CS-Cart + YOUPI      USD 1459      Multi-Vendor Ultimate       USD 7500 (6000)