Shop Hosting
Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: Euro symbol issue

    jey

    • Frisch an Board
    • Beiträge: 92
    • Geschlecht:
    Euro symbol issue
    am: 20. März 2012, 10:11:25
    In all print page Euro symbol is not displayed. It will displayed like '¤'

    if we use $ or £ it will displayed properly in print page?

    how to solve this issue

    Linkback: https://www.modified-shop.org/forum/index.php?topic=19033.0
    Managed Server

    DokuMan

    • modified Team
    • Beiträge: 6.669
    • Geschlecht:
    Re: Euro symbol issue
    Antwort #1 am: 20. März 2012, 10:41:14
    The symbols $ or £ are both implemented in the Latin1-charset (ISO 8859-1), but € is not.
    Did you use the "hardcoded" €-symbol or did you use the html entity "€"?
    The latter should work as desired.

    noRiddle (revilonetz)

    • Experte
    • Beiträge: 13.988
    • Geschlecht:
    Re: Euro symbol issue
    Antwort #2 am: 20. März 2012, 10:45:29
    There might be the question which version jeyganesh is using since there is an issue with the charset implementation in print_order.html and similar files (e.g. print_product_info.html).
    There you find sth like
    Code: PHP  [Auswählen]
    <meta http-equiv="Content-Type" content="text/html; charset={$charset}" />

    instead of
    Code: PHP  [Auswählen]
    <meta http-equiv="Content-Type" content="text/html; charset={$smarty.session.language_charset}" />

    Cheers,
    noRiddle

    jey

    • Frisch an Board
    • Beiträge: 92
    • Geschlecht:
    Re: Euro symbol issue
    Antwort #3 am: 11. Juni 2012, 07:29:28
    There might be the question which version jeyganesh is using since there is an issue with the charset implementation in print_order.html and similar files (e.g. print_product_info.html).
    There you find sth like
    Code: PHP  [Auswählen]
    <meta http-equiv="Content-Type" content="text/html; charset={$charset}" />

    instead of
    Code: PHP  [Auswählen]
    <meta http-equiv="Content-Type" content="text/html; charset={$smarty.session.language_charset}" />

    Cheers,
    noRiddle

    yes we done as per your instruction. it is working fine in but in admin area order print "£" sympol is not displayed properly. we cant insert &pound; html entity mode. because we are used auto billing generation module. this module is print to the page html entity. (ex: if we select pound invoice page displayed &pound; not in "£" )

    So How to solve this issue?

    h-h-h

    • modified Team
    • Beiträge: 4.562
    Re: Euro symbol issue
    Antwort #4 am: 11. Juni 2012, 08:31:28
    Hi jeygansesh,
    take &#163; instead of &pound; or change the regex in the outputfilternode ( smarty plugin folder ).

    best regards

    h-h-h

    jey

    • Frisch an Board
    • Beiträge: 92
    • Geschlecht:
    Re: Euro symbol issue
    Antwort #5 am: 21. Juni 2012, 12:23:22
    what i have to change the following function

    Code: PHP  [Auswählen]
    function smarty_outputfilter_note($tpl_output, &$smarty) {

     // $cop='<div class="copyright"><a href="http://www.modified eCommerce Shopsoftware.org" target="_blank">' . PROJECT_VERSION . '</a>' . '&nbsp;' . '&copy;' . date('Y') . '&nbsp;' . 'provides no warranty and is redistributable under the <a href="http://www.fsf.org/licensing/licenses/gpl.txt" target="_blank">GNU General Public License</a><br />eCommerce Engine 2006 based on <a href="http://www.(( Wir dulden keine kommerziellen Werbelinks - Bitte Forenregeln beachten! ))/" rel="nofollow" target="_blank">xt:Commerce</a></div>';

      //BOF - web28 - making output W3C-Conform: replace ampersands, rest is covered by the modified shopstat_functions.php  
      $tpl_output = preg_replace("/&(?!(amp;|#[0-9]+;|[a-z0-9]+;))/i", "&amp;", $tpl_output);  
      //EOF - web28 - making output W3C-Conform: replace ampersands, rest is covered by the modified shopstat_functions.php

      return $tpl_output.$cop;
    }

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.369
    • Geschlecht:
    Re: Euro symbol issue
    Antwort #6 am: 26. Juni 2012, 15:38:30
    [...]
    Code: PHP  [Auswählen]
    [...]
     // $cop='<div class="copyright">[...]

    You won't get any more free support here without our backlink! :motz:

    Regards

    Torsten

    jey

    • Frisch an Board
    • Beiträge: 92
    • Geschlecht:
    Re: Euro symbol issue
    Antwort #7 am: 27. Mai 2014, 06:12:15
    what i have to change the  function

    noRiddle (revilonetz)

    • Experte
    • Beiträge: 13.988
    • Geschlecht:
    Re: Euro symbol issue
    Antwort #8 am: 27. Mai 2014, 11:50:57
    Just take off the comment slashes before $cop ='.... .
    Further you should provide a link to your shop to prove you did.

    Regards,
    noRiddle

    jey

    • Frisch an Board
    • Beiträge: 92
    • Geschlecht:
    Re: Euro symbol issue
    Antwort #9 am: 27. Mai 2014, 14:28:53
    what i have to change the following function

    Code: PHP  [Auswählen]
    function smarty_outputfilter_note($tpl_output, &$smarty) {

      //BOF - web28 - making output W3C-Conform: replace ampersands, rest is covered by the modified shopstat_functions.php  
      $tpl_output = preg_replace("/&(?!(amp;|#[0-9]+;|[a-z0-9]+;))/i", "&amp;", $tpl_output);  
      //EOF - web28 - making output W3C-Conform: replace ampersands, rest is covered by the modified shopstat_functions.php

      return $tpl_output.$cop;
    }

    noRiddle (revilonetz)

    • Experte
    • Beiträge: 13.988
    • Geschlecht:
    Re: Euro symbol issue
    Antwort #10 am: 27. Mai 2014, 14:50:15
    Do you want to provoke to be blocked ?
    If you don't stop to post multiple posts about the same topic/question and
    if you don't prove that you have got the Credits in the footer of your shop,
    there will not only be no support but a banning from the forum will be probable.

    Got that now ?

    noRiddle
    0 Antworten
    2307 Aufrufe
    15. Mai 2012, 09:48:15 von jey
    2 Antworten
    3829 Aufrufe
    15. Februar 2012, 14:23:03 von jey
    2 Antworten
    3929 Aufrufe
    06. November 2013, 13:50:54 von noRiddle (revilonetz)
               
    anything