Log 4492

$birth_date = #תאריך לידה#;

if ($birth_date !== ”) {
$today_date = date(‘d/m/Y’);

$birth_timestamp = strtotime($birth_date);
$today_timestamp = strtotime($today_date);

$year_difference = floor(($today_timestamp – $birth_timestamp) / (365.25 * 24 * 60 * 60));

return $year_difference;
} else {
return ”;
}

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