Log 3229

$price = 10;
$quantity = 5;
$num_rounds = 2;
$discount_percent = 20;

$result = ($num_rounds == 1) ? $price * $quantity : ($price * $quantity) + ($price * $quantity * $num_rounds * $discount_percent / 100);

return htmlspecialchars($result);

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