Free Shipping, Business Levels correction, Products Buying, Fonts

This commit is contained in:
Kevin Adametz 2023-01-25 12:37:29 +01:00
parent 3f2fbd6d5b
commit 0341c9c189
197 changed files with 9161 additions and 329 deletions

View file

@ -65,6 +65,17 @@ class Util
}
public static function maxStrLength($str, $length = 40){
if(strlen($str) > $length){
$str = substr($str, 0, $length);
//$str = substr($str, 0, strrpos($str, " "));
$str = $str." ...";
}
return $str;
}
public static function reFormatNumber($value){
return (float) str_replace(',', '.', self::_format_number($value));
}