Log 4644

$total_monthly_payment = 0;
$total_one_time_payment = 0;

$selected_services = array(
‘service1’ => array(
‘name’ => #שירותים נבחרים – מקושר#,
‘cost_type’ => ‘#שדה “עלות ריטיינר חודשי” או “עלות פרויקט”#’
),
‘service2’ => array(
‘name’ => #שירותים נבחרים – מקושר#,
‘cost_type’ => ‘#שדה “עלות ריטיינר חודשי” או “עלות פרויקט”#’
)
);

foreach($selected_services as $service) {
if ($service[‘cost_type’] == ‘#שדה “עלות ריטיינר חודשי”‘) {
$total_monthly_payment += calculateMonthlyCost($service[‘name’]);
} elseif ($service[‘cost_type’] == ‘#שדה “עלות פרויקט”‘) {
$total_one_time_payment += calculateProjectCost($service[‘name’]);
}
}

return ‘Total Monthly Payment: ‘.$total_monthly_payment.’
‘;
return ‘Total One-Time Payment: ‘.$total_one_time_payment;

function calculateMonthlyCost($serviceName) {
// Calculation logic for monthly cost based on service name
}

function calculateProjectCost($serviceName) {
// Calculation logic for one-time project cost based on service name
}

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