Log 2481

$input = #סכום#; // Replace with actual value

$total = 0;
$group = array($input);

while (!empty($group)) {
$current = array_shift($group);

if (is_numeric($current)) {
$total += $current;
} elseif (preg_match(‘/^d{2}/d{2}/d{4}$/’, $current)) {
continue; // Ignore dates
} else {
preg_match_all(‘/#([^#]+)#/’, $current, $matches);

foreach ($matches[1] as $placeholder) {
if ($placeholder !== ‘סכום’) {
$group[] = str_replace(“#$placeholder#”, ”, $input);
}
}
}
}

return “Total: ” . number_format($total, 2); // Echo the total amount

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