Hi.
Thanks for letting me in
I need some help adding a bit of simple maths to my existing code. I have a plugin on my WordPress site which updates stock details including price. I can add code to this plugin to perform additional functions but I don’t know enough about PHP to do this.
Currently the code does some calculation based on field values of the import CSV file as below: -
function my_price( $price, $multiplier, $delivery){
return $price * $multiplier + $delivery;
}
I want to add an additional 3.4% + 20p to the sum of this calculation. What is the simplest way to achieve this?
Thanks.