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;
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
Members Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login Now