Log 2303

function calculateDateAfterFlush($flushDate, $daysAfterFlush) {
$dateParts = explode(‘/’, $flushDate);
$day = (int)$dateParts[0];
$month = (int)$dateParts[1];
$year = (int)$dateParts[2];

// Calculate the timestamp of the flush date
$flushTimestamp = mktime(0, 0, 0, $month, $day, $year);

// Calculate the timestamp of the date after flush
$afterFlushTimestamp = strtotime(“+$daysAfterFlush days”, $flushTimestamp);

// Format and return the date after flush
return date(‘d/m/Y’, $afterFlushTimestamp);
}

$flushDatePlaceholder = #שוטף#;
$daysAfterFlushPlaceholder = #ימים לאחר השוטף#;

// Replace placeholders with actual values from your code or input
$flushDateValue = ’10/12/2022′;
$daysAfterFlushValue= 7;

return calculateDateAfterFlush($flushDateValue, $daysAfterFlushValue);

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