Log 2671

$amounts = explode(‘,’, $_POST[#הסכום#]);
$paymentDate = $_POST[#ישולם בתאריך#];
$currentMonth = date(‘m’);

$totalAmount = 0;
foreach ($amounts as $amount) {
$dateParts = explode(‘/’, $paymentDate);
if ($dateParts[1] == $currentMonth) {
$totalAmount += intval($amount);
}
}

return $totalAmount;

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