Replace decimals

  • In Progress
    Posted in: Final Price  

  • Member
    estunt
    August 29, 2017 at 3:47 pm #33996

    Hi team,

    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?

    Kind regards,
    Daan

    Attachments:
    You must be logged in to view attached files.

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.