Fix Uncaught TypeError: Unsupported operand types: string * float
This commit is contained in:
parent
9901b1e931
commit
59adcb26b8
|
@ -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" ] );
|
||||
|
|
Loading…
Reference in New Issue