Jump to content

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

Fetch The En Version Rather Than Ar Version In An Input Rate Topic   - - - - -

 
  • kylej90
  • Member
  • Trial users
  • Join Date: 23-Aug 20
  • 35 posts

Posted 26 October 2020 - 01:25 PM #1

Hello,

 

Let's say i have an option with the below value set and this value is taken from database depending on the frontend language, so if you are on the English version of the website, it will fetch the value from the table city where lang code is "en" and in Arabic it will fetch the value from the same table where lang code is "ar".  What if i want to fetch the value for the "en" while I'm in Arabic mode ? How can i achieve that ?

 

<option value="$city_id">City</option>

 

Thanks.



 
  • soft-solid
  • Junior Member
  • Authorized Reseller
  • Join Date: 19-Apr 10
  • 1321 posts

Posted 27 October 2020 - 09:32 AM #2

Hello

 

This cannot be done without changing the code.

 

Best regards

Robert


Team of SoftSolid
cs-cart.pl, marketplace

We specialize in creating the highest quality addons, safe, useful and flexible