rachael-portier
1/20/2020 - 3:07 PM

PHP Math Operators

Division = ($x/$y)

// EXAMPLE #1 (in comments): GET PRICE OF SINGLE ITEM ON THANK YOU PAGE
$qty          = $item->get_quantity();
        $total = $order->get_line_subtotal($item); 
        $single = ($total / $qty);
        
        echo '$' . $single;