Fix Uncaught TypeError: Unsupported operand types: string * float

This commit is contained in:
ratulhasan 2021-10-21 20:43:40 +06:00 committed by barryhughes
parent 9901b1e931
commit 59adcb26b8
1 changed files with 1 additions and 1 deletions

View File

@ -928,7 +928,7 @@ class WC_Admin_Post_Types {
return false;
}
$old_price = $product->{"get_{$price_type}_price"}();
$old_price = doubleval( $product->{"get_{$price_type}_price"}() );
$price_changed = false;
$change_price = absint( $request_data[ "change_{$price_type}_price" ] );