I use this code to show the customer what it costs over several months if the customer wants to pay off several installments.
But the code should only work on items above $ 10 and be inactive for items below.
Anyone have any suggestions?
add_action( 'woocommerce_single_product_summary', 'show_emi', 1 );
function show_emi() {
global $product;
$id = $product->get_id();
$product = wc_get_product( $id );
$a=$product->get_price();
$b = 20;
$c = 100;
$d = $a / $b;
$total = $a / $b;
echo '<div class="afbetaling">
<b> Eller kun '.$total.' kr./md i 20 mdr. </b>
0% i rente og gebyrer. <br> Få mere info i butikken</div>';
}