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));
}
?>