Log 3213

$field_value = #מועד שינוי לסטטוס בוצעה עסקה#;
$current_date = date(‘d/m/Y’);
$date_diff = 0;
if (strpos($field_value, ‘/’) !== false) {
$field_date_arr = explode(‘/’, $field_value);
if (count($field_date_arr) == 3 && is_numeric($field_date_arr[0]) && is_numeric($field_date_arr[1]) && is_numeric($field_date_arr[2])) {
$diff_timestamp = strtotime($current_date) – strtotime(implode(‘/’, $field_date_arr));
if ($diff_timestamp > 0) {
$date_diff = floor($diff_timestamp / (60 * 60 * 24));
}
}
}
return $date_diff;

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