Log 2735

$purchaseDate = #תאריך רכישה#;
$year = “”;

if (strpos($purchaseDate, “/”) !== false) {
$dateParts = explode(“/”, $purchaseDate);

if (count($dateParts) === 3 && is_numeric($dateParts[0]) && is_numeric($dateParts[1]) && is_numeric($dateParts[2])) {
$year = date(“Y”, strtotime($purchaseDate));
}
}

return $year;

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