Log 4186

$today = date(‘d/m/Y’);
$start_date = ‘תאריך התחלה’;
$end_date = ‘תאריך סיום’;

$start_date_converted = DateTime::createFromFormat(‘d/m/Y’, $start_date)->format(‘Y-m-d’);
$end_date_converted = DateTime::createFromFormat(‘d/m/Y’, $end_date)->format(‘Y-m-d’);

if (strtotime($start_date_converted) > strtotime(date(‘Y-m-d’))) {
return “עדיין לא התחיל”;
} elseif (strtotime($start_date_converted) <= strtotime(date('Y-m-d')) && strtotime(date('Y-m-d')) <= strtotime($end_date_converted)) {
return "פעיל";
} elseif (strtotime($end_date_converted) < strtotime(date("Y-m-d"))) {
return "הסתיים";
} 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