Log 2333

Here is the formula in PHP language:

$start_date = strtotime(#תאריך יצירה#);
$end_date = strtotime(#תאריך שהפך ללקוח#);

if ($start_date && $end_date) {
$time_diff = $end_date – $start_date;
$average_time = round($time_diff / (60 * 60 * 24)); // Convert seconds to days
return “Average time: ” . $average_time . ” days”;
} else {
return “”; // Default empty value
}

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