Warning: A non-numeric value encountered?
Hi everyone after transferring my site to another hosting I get this error: (php 7.4 on both hosts)
"Warning: A non-numeric value encountered in /htdocs/example.com/wp-content/themes/themename/woocommerce/taxonomy-product_cat.php on line 159"
the code on line 159 is the following:
$discount = round (intval($sale_price / $regular_price ) * floatval (100));
where am i wrong?
Thanks for help me
$299 Affordable Web Design WordPress
This article was republished from its original source.
Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.