chekout page php error
-
Hi I am facing a problem with edd checkout page.
i need to add a custom currency, but after that, a php warning shown top of checkout page.
message is:
Warning: A non-numeric value encountered in E:\xampp\htdocs\w\wp-content\plugins\temify.php on line 552line 552 refer to this code: $price = @$price/10000;
all my custom currency code is:
if ( ! function_exists( 'edd_htoman_currency' ) ) { function edd_htoman_currency( $formatted, $currency, $price ) { if ( ! is_admin() ) { $price = @str_replace( edd_get_option( 'thousands_separator', ',' ), '', $price ); $price = @$price/10000; $price = number_format( $price, 0, '', ',' ); return $price . ' ?????????'; } return $price . ' ????'; } } add_filter( 'edd_rial_currency_filter_after', 'edd_htoman_currency', 10, 3 ); add_filter( 'edd_rial_currency_filter_before', 'edd_htoman_currency', 10, 3 );
i think this error is from PHP 7.1.7 that i am using.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘chekout page php error’ is closed to new replies.