Log 2473

$dateEntry = “10/10/2023”;
$daysToCredit = 20;
$dailyCost = 50;
$dateCancellation = “12/11/2023”;

list($dayEntry, $monthEntry, $yearEntry) = explode(‘/’, $dateEntry);
list($dayCancellation, $monthCancellation, $yearCancellation) = explode(‘/’, $dateCancellation);

if ($yearEntry < 2023 || ($yearEntry == 2023 && ($monthEntry < 11 || ($monthEntry == 11 && $dayEntry 2023 || ($yearCancellation == 2023 && ($monthCancellation > 11 || ($monthCancellation == 11 && $dayCancellation >= 10)))) {
return $daysToCredit * $dailyCost;
} else {
return “0”;
}
} else {
return “0”;
}

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