$discount_percentage = absint( 100 – ( ( $sale / $regular ) * 100) );
It shows the problem below:
Warning: A non-numeric value encountered in D:\Xammp\htdocs\learnwp\wp-content\themes\pigeon-tori\template-home.php on line 88
Warning: A non-numeric value encountered in D:\Xammp\htdocs\learnwp\wp-content\themes\pigeon-tori\template-home.php on line 88
Warning: Division by zero in D:\Xammp\htdocs\learnwp\wp-content\themes\pigeon-tori\template-home.php on line 88