this is because in my woocommerce I have configured two decimals in the price and in the function woo_product_price_2sats I format the price in $product_p_formated with rtrim($total, ".0"); to avoid having zeros that I don't need. You can solve it in a very simple way, either adding two decimals in the woocommerce price settings (woocommerce>settings) or commenting that line of code and in the fiat price print print "<span class='fiat-price'> {$product_p_formated} €</span>"; replace $product_p_formated with $total.
Yes, I've had those problems too (that's why they appear disabled), it's because woocommerce doesn't have a filter to differentiate between the cart page and the minicart and that breaks it, however I already have a way to do it by digging in the woocommerce template files, I haven't had time to develop it yet, but it's the starting point.
good deal gzoo. appreciate you taking the time to respond and layout a solution here. ill look forward to your revision with cart/minicart fixes. thanks again!
woo_product_price_2sats
I format the price in$product_p_formated
withrtrim($total, ".0");
to avoid having zeros that I don't need. You can solve it in a very simple way, either adding two decimals in the woocommerce price settings (woocommerce>settings) or commenting that line of code and in the fiat price printprint "<span class='fiat-price'> {$product_p_formated} €</span>";
replace$product_p_formated
with$total
.