In woocommerce I replaced the decimals of the price if they where ,00 to ,-
After using the Plugin TM Extra Product Options, which is a very nice plugin by the way, the prices are shown again with the decimals ,00.
I used the function:
add_filter( 'woocommerce_get_price_html', 'Remove' );
function Remove($price){
if ($decimal = '00'){
$price = str_replace(',00',',-',$price);
}
return $price;
}
How can I replace the decimals when I use the plugin?
Cookies are important to the proper functioning of our sites. To improve your experience we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests.
Click Agree and Proceed to accept cookies and go directly to the site or click on More Information to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site. Selecting "Ask me later" will enable cookies for the next 24 hours.