+ ÅäÔÇÁ ãæÖæÚ ÌÏíÏ
ÇáäÊÇÆÌ 1 Åáì 2 ãä 2
  1. #1
    Status
    Offline
    ÇáÕæÑÉ ÇáÑãÒíÉ Rise Company
    Engineering and Technology
    ÊÇÑíÎ ÇáÊÓÌíá
    Apr 2014
    ÇáÏæáÉ
    Egypt
    ÇáãÔÇÑßÇÊ
    4,703
    ãÚÏá ÊÞííã ÇáãÓÊæì
    10

    ÇÝÊÑÇÖí ÓßÑíÈÊ Whmcs ßíÝíÉ ÇÖÇÝÉ ÇíÞæäÇÊ ÇáÇÚáÇã / ÇáÏæá language flags


    ÓßÑíÈÊ Whmcs ßíÝíÉ ÇÖÇÝÉ ÇíÞæäÇÊ ÇáÇÚáÇã / ÇáÏæá language flags
    How to add country flags? - how to change flag? - to change language flags on v8
    How to use icons in WHMCS to select the language in client area




    WHMCS has flags for the following currencies as standard; AUD, CAD, EUR, GBP, INR, JPY, USD and ZAR. If any of these currencies are configured, a flag will appear on the shopping cart for new signups to select as shown above.

    In this example I will be adding Chinese Yuan (CNY) and modifying the Modern template,
    but you can also follow this same technique with the Slider template.

    Úáì ÓÈíá ÇáãËÇá : ÇáÕíä Çæ æÖÚ ãÕÑ

    So to add flags for more currencies, first obtain or create a flag image measuring 16px by 11px and then upload it to the whmcs/assets/img/flags directory.
    Next we need to copy the order form template to give us one we can customize.
    So duplicate the /templates/orderforms/modern directory and name it whatever you like,



    for this example I will call it 'moderncustom'.

    ßæÏ:
    Open /templates/orderforms/moderncustom/products.tpl and look for line 26:
    {elseif $curr.code eq "EUR"}eu
    {elseif $curr.code eq "GBP"}gb
    {elseif $curr.code eq "INR"}in
    {elseif $curr.code eq "JPY"}jp
    {elseif $curr.code eq "USD"}us
    {elseif $curr.code eq "ZAR"}za
    {else}na{/if}.png" border="0" alt="" /> {$curr.code}


    Replace it with:

    {elseif $curr.code eq "EUR"}eu
    {elseif $curr.code eq "GBP"}gb
    {elseif $curr.code eq "INR"}in
    {elseif $curr.code eq "JPY"}jp
    {elseif $curr.code eq "USD"}us
    {elseif $curr.code eq "ZAR"}za

    {elseif $curr.code eq "EGP"}eg
    {else}na{/if}.png" border="0" alt="" /> {$curr.code}


    Where my flag image is called ch.png. I've highlighted the code added in the screenshot below.
    The end result is a block of code on line 26 which looks like:


    ÇÝÊÍ åÐÇ ÇáãÓÇÑ ÇÐì ßÇä legacy modern åæ ÇáÇÝÊÑÇÖì áß
    ßæÏ:
    whmcs/templates/orderforms/legacy_modern/products.tpl
    and made the exact same modification to line 47 of this file too.

    Now upload the two templates files we just edited. Login to your WHMCS admin area to
    select the moderncustom order form template from the Setup > General Settings > Ordering tab and you're done!

    A flag image will now be displayed to visitors on the order form next to the CNY currency option.
    It would just be a case of adjusting the "CNY" variable and "ch" filename in order to add as many different flags as desired.




    ÇáÎáÇÕÉ :

    0- ÇÐåÈ Çáì ãÓÇÑ ÇáÇÚáÇã æÖÚ áæÌæ Úáã ÏæáÊß
    1- ÔÇåÏ ÏÇÎá ÇÚÏÇÏÇÊ whmcs ÇÓã order template ÇáÇÝÊÑÇÖì
    2- ÇÐåÈ Çáì ãÓÇÑ order template æÚÏá ãáÝ ÈÇÓã products.tpl

    3- ÏÇÎá åÐÇ ÇáãáÝ ÇÈÍË ãËáÇ us ÔæÝ ÇáßæÏ ÇáÎÇÕ ÈåÇ æßÑÑå æáßä ãÚ ÊÛííÑ ÇáÞíã
    4- ÖÚ ÇáÕæÑÉ Ýì ÇáãÓÇÑ whmcs/assets/img/flags

    ãáÍæÙÉ :
    åÊÌÏ ÇáßæÏ ÇáÐì åíÊØáÈ ÊÚÏíáå ãÑÊíä ÏÇÎá ãáÝ products.tpl

    ÇáãÑÌÚ:
    http://3.12.123.82/96174/whmcs-insig...currency-flags
    https://whmcs.community/topic/305858...e-flags-on-v8/
    https://whmcs.community/topic/168593...o-change-flag/
    https://domainregister.international...ient-area.html

    ------------------------------------------------------------------------
    ÔÑßÉ ÑÇíÒ ááåäÏÓÉ æ ÇáÊßäæáæÌíÇ Rise Company for Engineering & Technology
    ------------------------------------------------------------------------
    Web Hosting | Web Designing | E-Marketing

    ÑÞã # 1 Ýì ÎÏãÇÊ ÇáÔÑßÇÊ Business Services

    ÇÓÊÖÇÝÉ ãæÇÞÚ Web Hosting - Úãá Çíãíá ÔÑßÉ Business Emails

    ÊÕãíã ãæÞÚ ÔÑßÉ Web Design - ÊÓæíÞ ÇáßÊÑæäì Úáì ÌæÌá Google Adwords

    www.rise.company | www.rise.company/emails

    ãáÍæÙÉ : ÌãíÚ ÎÏãÇÊäÇ ãÎÕÕÉ ááÔÑßÇÊ ÝÞØ æÛíÑ ãÊÇÍÉ ááÇÝÑÇÏ
    æáíÓ áäÇ Çì ãäÊÌÇÊ Çæ ÕíÇäÉ äåÇÆíÇ! íÑÌì ÇáÇäÊÈÇå Çáì Ðáß.



  2. #2
    Status
    Offline
    ÇáÕæÑÉ ÇáÑãÒíÉ Rise Company
    Engineering and Technology
    ÊÇÑíÎ ÇáÊÓÌíá
    Apr 2014
    ÇáÏæáÉ
    Egypt
    ÇáãÔÇÑßÇÊ
    4,703
    ãÚÏá ÊÞííã ÇáãÓÊæì
    10

    ÇÝÊÑÇÖí ÑÏ: ÓßÑíÈÊ Whmcs ßíÝíÉ ÇÖÇÝÉ ÇíÞæäÇÊ ÇáÇÚáÇã / ÇáÏæá language flags

    åÐÇ åæ ÇáßæÏ

    {elseif $curr.code eq "SAR"}sa

    íÈÏÇ ÈÜ else æíäÊåì sa æåæ ÇÓã ÇáÕæÑÉ

    ----------------------------------------

    åÐÇ åæ ßæÏ ÇáÏæá ÇáÇÓÇÓíÉ ãÚ ãÕÑ æ ÇÔåÑ Ïæá ÇáÎáíÌ

    ßæÏ:
    <img src="{$BASE_PATH_IMG}/flags/{if $curr.code eq "AUD"}au{elseif $curr.code eq "CAD"}ca{elseif $curr.code eq "EUR"}eu{elseif $curr.code eq "GBP"}gb{elseif $curr.code eq "INR"}in{elseif $curr.code eq "JPY"}jp{elseif $curr.code eq "USD"}us{elseif $curr.code eq "EGP"}eg{elseif $curr.code eq "SAR"}sa{elseif $curr.code eq "QAR"}qa{elseif $curr.code eq "AED"}ae{else}na{/if}.png" border="0" alt="" />
    ÇáãáÝÇÊ ÇáãÑÝÞÉ ÇáãáÝÇÊ ÇáãÑÝÞÉ
    ------------------------------------------------------------------------
    ÔÑßÉ ÑÇíÒ ááåäÏÓÉ æ ÇáÊßäæáæÌíÇ Rise Company for Engineering & Technology
    ------------------------------------------------------------------------
    Web Hosting | Web Designing | E-Marketing

    ÑÞã # 1 Ýì ÎÏãÇÊ ÇáÔÑßÇÊ Business Services

    ÇÓÊÖÇÝÉ ãæÇÞÚ Web Hosting - Úãá Çíãíá ÔÑßÉ Business Emails

    ÊÕãíã ãæÞÚ ÔÑßÉ Web Design - ÊÓæíÞ ÇáßÊÑæäì Úáì ÌæÌá Google Adwords

    www.rise.company | www.rise.company/emails

    ãáÍæÙÉ : ÌãíÚ ÎÏãÇÊäÇ ãÎÕÕÉ ááÔÑßÇÊ ÝÞØ æÛíÑ ãÊÇÍÉ ááÇÝÑÇÏ
    æáíÓ áäÇ Çì ãäÊÌÇÊ Çæ ÕíÇäÉ äåÇÆíÇ! íÑÌì ÇáÇäÊÈÇå Çáì Ðáß.



ÇáãæÇÖíÚ ÇáãÊÔÇÈåå

  1. ÓßÑíÈÊ Whmcs ßíÝíÉ æÖÚ ÇáÚãáå Ýì ÇáÑÇÈØ Currency in a link
    ÈæÇÓØÉ Rise Company Ýí ÇáãäÊÏì ÞÓã ÇÏÇÑÉ ÇáÇÓÊÖÇÝÉ Whmcs
    ãÔÇÑßÇÊ: 0
    ÂÎÑ ãÔÇÑßÉ: 20-11-2021, 22:06
  2. ÓßÑíÈÊ Whmcs ßíÝíÉ ÇÙåÇÑ / ÇÎÝÇÁ / ÊÛííÑ ÑÇÈØ ÇáÕÝÍÉ ÇáÑÆíÓíÉ home button
    ÈæÇÓØÉ Rise Company Ýí ÇáãäÊÏì ÞÓã ÇÏÇÑÉ ÇáÇÓÊÖÇÝÉ Whmcs
    ãÔÇÑßÇÊ: 0
    ÂÎÑ ãÔÇÑßÉ: 05-11-2020, 16:40
  3. ÓßÑíÈÊ Whmcs ÇÖÇÝÉ / ÍÐÝ / ÊÚÏíá ÇááÛÇÊ ãä ÞÇÆãÉ languages
    ÈæÇÓØÉ Rise Company Ýí ÇáãäÊÏì ÞÓã ÇÏÇÑÉ ÇáÇÓÊÖÇÝÉ Whmcs
    ãÔÇÑßÇÊ: 0
    ÂÎÑ ãÔÇÑßÉ: 20-09-2019, 23:46
  4. ÇáÓíæ Seo Ýì ÓßÑíÈÊ Whmcs - ÃÝÖá ÇÖÇÝÉ ãÌÇäíÉ áÚãá Óíæ áÕÝÍÇÊ ÇáãæÞÚ
    ÈæÇÓØÉ Rise Company Ýí ÇáãäÊÏì ÞÓã ÇÏÇÑÉ ÇáÇÓÊÖÇÝÉ Whmcs
    ãÔÇÑßÇÊ: 0
    ÂÎÑ ãÔÇÑßÉ: 04-05-2018, 01:12
  5. ÔÑÍ ÊÛííÑ ÇÊÌÇå ÊãÈáÊ whmcs áíÏÚã RTL ÏÇÎá TPL ÇáãÚÑÈ WHMCS Arabic Language
    ÈæÇÓØÉ Rise Company Ýí ÇáãäÊÏì ÞÓã ÇÏÇÑÉ ÇáÇÓÊÖÇÝÉ Whmcs
    ãÔÇÑßÇÊ: 0
    ÂÎÑ ãÔÇÑßÉ: 16-04-2018, 00:20

ÇáãÝÖáÇÊ

ÇáãÝÖáÇÊ

ÖæÇÈØ ÇáãÔÇÑßÉ

  • áÇ ÊÓÊØíÚ ÅÖÇÝÉ ãæÇÖíÚ ÌÏíÏÉ
  • áÇ ÊÓÊØíÚ ÇáÑÏ Úáì ÇáãæÇÖíÚ
  • áÇ ÊÓÊØíÚ ÅÑÝÇÞ ãáÝÇÊ
  • áÇ ÊÓÊØíÚ ÊÚÏíá ãÔÇÑßÇÊß
  •