Log 2507

$num = #חפ#; // Replace #חפ# with the actual number

$units = array(
0 => ‘אפס’,
1 => ‘אחת’,
2 => ‘שניים’,
3 => ‘שלושה’,
4 => ‘ארבעה’,
5 => ‘חמישה’,
6 => ‘ששה’,
7 => ‘שבעה’,
8 => ‘שמונה’,
9 => ‘תשעה’
);

$tens = array(
10 => “עשר”,
20 => “עשרים”,
30=> ” שלושים”,
40=> ” ארבעים”,
50=> ” חמישים”,
60=> ” ש”.’ו’.”וע”,
70=> ” ש”.’ב’.”ע”,

);

$thousands = array(
”,
‘ אלף ‘,
$tens[2] . ‘-אלף ‘,
$tens[3] . ‘-אלף ‘,
$tens[4] . ‘-אלף ‘,
);

$hundreds = array(
”,
$units[1] . ‘-מאה ‘,
$units[2] . ‘-מ”-‘.’ת’.”י”.”-” .’מ”‘ .”‘. “,

);

if ($num == ”) {
return ”; // Default empty value
} elseif ($num < 10) {
return $units[$num]; // Number less than 10
} elseif ($num < 20) {
return $units[$num – 10] . '-עשר'; // Number between 10 and 19
} elseif ($num < 100) {
$tensDigit = floor($num / 10);
$onesDigit = $num % 10;
return $tens[$tensDigit * 10] . '-' . $units[$onesDigit]; // Number between 20 and 99
} elseif ($num < 1000) {
$hundredsDigit = floor($num / 100);
$tensAndOnesDigits = $num % (floor($num / 100) * 100);
if ($tensAndOnesDigits == '') {
return $hundreds[$hundredsDigit];
} else {
return $hundreds[$hundredsDigit] . " ו" . #חפ#; // Number between

}
}

Select the fields to be shown. Others will be hidden. Drag and drop to rearrange the order.
  • Image
  • SKU
  • Rating
  • Price
  • Stock
  • Availability
  • Add to cart
  • Description
  • Content
  • Weight
  • Dimensions
  • Additional information
  • Attributes
  • Custom attributes
  • Custom fields
Click outside to hide the comparison bar
Compare