Jump to content

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

How Can We Set A Font Type For A Specific Language? Rate Topic   - - - - -

 
  • Jamalla
  • Senior Member
  • Members
  • Join Date: 23-Sep 17
  • 347 posts

Posted 10 January 2018 - 10:34 AM #1

Hello,

 

In multilingual store, how can we set a font type for a specific language?

 

Thanks



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

Posted 10 January 2018 - 01:25 PM #2

For example, you can add to the footer custom HTML block with SMARTY support and following code

{if $smarty.const.CART_LANGUAGE == 'en'}
<style>
... customer styles here (fonts, colors, etc)....
</style>
{/if}

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 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • Jamalla
  • Senior Member
  • Members
  • Join Date: 23-Sep 17
  • 347 posts

Posted 10 January 2018 - 04:11 PM #3

 

For example, you can add to the footer custom HTML block with SMARTY support and following code

{if $smarty.const.CART_LANGUAGE == 'en'}
<style>
... customer styles here (fonts, colors, etc)....
</style>
{/if}

 

Many thanks ..

I created a new block in the Default Layout in the footer section as following but it did not work with me

{if $smarty.const.CART_LANGUAGE == 'ar'}
<style>
 @import url('https://fonts.googleapis.com/css?family=Cairo');
*{
font-family: 'Cairo', sans-serif;
}
</style>
{/if}


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

Posted 11 January 2018 - 05:23 AM #4

At first check source code and check if new content is displayed


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 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • Jamalla
  • Senior Member
  • Members
  • Join Date: 23-Sep 17
  • 347 posts

Posted 11 January 2018 - 05:50 AM #5

At first check source code and check if new content is displayed

 

Yes, when I add a plain text  it is shown in the text ..



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

Posted 11 January 2018 - 12:33 PM #6

Yes, when I add a plain text  it is shown in the text ..

Try to add

{$smarty.const.CART_LANGUAGE|fn_print_r}

do you receive the 'ar' result?


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 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • Jamalla
  • Senior Member
  • Members
  • Join Date: 23-Sep 17
  • 347 posts

Posted 11 January 2018 - 02:24 PM #7

Hi,

 

Many thanks for your great help;

I just checked the check box "Apply to all languages" and i did work with me .. thanks alot..



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

Posted 12 January 2018 - 05:30 AM #8

You are welcome! :)


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 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • noithatxinh
  • Newbie
  • Trial users
  • Join Date: 27-Nov 19
  • 1 posts

Posted 27 November 2019 - 03:55 AM #9

{if $smarty.const.CART_LANGUAGE == 'en'}
<style>
... customer styles here (fonts, colors, etc)....
</style>
{/if}



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

Posted 28 November 2019 - 01:29 PM #10

What question do you have?


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 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • a3lanjo
  • Member
  • Trial users
  • Join Date: 14-Sep 20
  • 35 posts

Posted 09 June 2021 - 12:57 AM #11

The Best way to do that : 

{if $smarty.const.CART_LANGUAGE == 'en'}
<style>
[lang="en"] .yourclass {
    display: none;
}
</style>
{/if}

Enjoy !



 
  • AndrewS
  • Newbie
  • Trial users
  • Join Date: 16-Jun 21
  • 12 posts

Posted 20 June 2021 - 11:03 AM #12

The Best way to do that : 

{if $smarty.const.CART_LANGUAGE == 'en'}
<style>
[lang="en"] .yourclass {
    display: none;
}
</style>
{/if}

Enjoy !

Is this will be applied for the whole website?