Log 2073

Here is the PHP formula that calculates the total amount minus the discount percentage:

$total = 1000; // Example total amount
$discountPercentage = 20; // Example discount percentage

$result = $total * (1 – ($discountPercentage / 100));

return $result;

This formula calculates the discounted amount by subtracting the discount percentage from 100% and then multiplying it by the total amount. The result is stored in the `$result` variable and then returned.

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