Support

Account

Home Forums General Issues Make calculations Reply To: Make calculations

  • do it just like you would any other variables..

    
    $height = floatval(get_field('height'));
    $width = floatval(get_field('width'));
    $price = floatval(get_field('price'));
    $total = floatval(get_field('total')); //not neccessery, gets calculated.
    
    $total = ($width * $height) / $price;
    
    echo $total;