an
groups-icon

[Solution] EUR Problem with decimal/comma

Wait a minute... This content is very very old. We no longer sell or support this theme version. New Topics
  • Version 9
    Patrick Rehm
    0 points
    Beginner

    Hi guys,

    I have found a solution to fix the problem with the EUR decimal/comma problem.

    The Problem:
    In Germany and other european countrys the format for prices are 1.999,98 EUR or 3,95 EUR etc. The Classifieds-Theme and I think al other themes from premiumpress are not compatible with this format. The prices have to setup with an dot “.” instead of an comma “,”. For customers this is not comfortable to use this format because “it is not normal for them *g*”.

    Fix for input:
    1. open the “tpl-add.php file within the themefolder (for child themes you have to copy the tpl-add.php from core theme to the child theme).

    2. search the following code within tpl-add.php: $val = preg_replace(‘/[^\da-z.]/i’, ”, $val); and replace this with: $val = str_replace(‘,’,’.’, $val); $val = preg_replace(‘/[^\da-z.]/i’, ”, $val);

    Fix for output:
    1. open the “call_core.php” (coretheme\framework\class\class_core.php

    2. Search the following code within call_core.php: $seperator = “.”; $sep = “,”; $digs = 2; and replace this with: $seperator = “,”; $sep = “.”; $digs = 2;

    Thats it. Thanks for feedbacks.
    Pare

    August 22, 2015 at 7:15 am
  • 0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    August 22, 2015 at 8:48 am
  • Patrick Rehm
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    August 22, 2015 at 11:16 am
  • Richard Korthuis
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    August 23, 2015 at 8:03 am
  • 0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    August 23, 2015 at 8:23 am
  • Patrick Rehm
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    August 23, 2015 at 11:58 am
  • Jaqueline Branchet
    113 points
    Silver User
    Bronze User Silver User
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    September 5, 2015 at 3:33 am
  • Franck Aucuit
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    May 26, 2016 at 5:15 am
  • Randy Hoogervorst
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    June 3, 2016 at 6:36 pm
  • Josh njenga
    -10 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    June 3, 2016 at 7:25 pm
  • Franck Aucuit
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    June 13, 2016 at 9:28 am
  • Patrick Rehm
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    August 5, 2016 at 10:14 am
  • Jaqueline Branchet
    113 points
    Silver User
    Bronze User Silver User
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    August 6, 2016 at 2:42 am
  • Franck Aucuit
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    August 6, 2016 at 8:21 am
  • JasonX Beard
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    August 6, 2016 at 9:12 am

819

Views

23

Replies