Dwd Posted January 17, 2023 Share Posted January 17, 2023 (edited) Hello, I need support how to correctly put this php code to functions.php file on woocommerce platform, with this php, the loan amount should be displayed on the product page along with the product price, with the amount automatically being called from the wp database. if anyone can help how to connect amount to wp base i would appreciate it, thanks, Dwd Php code: <?php if ($product['price_gross'] > 8000) { $cramount = 0.01658 * -$product['price_gross'] * ((1 + 0.01658)**23) / (1 - ((1 + 0.01658)**23)); } ?> Edited January 17, 2023 by Dwd Quote Link to comment https://forums.phpfreaks.com/topic/315813-auto-loan-calculator-on-functionsphp/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.