Replace decimals

This topic is: Resolved
  • Resolved
    Posted in: Final Price  
  • estunt
    #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.
    ThemeCompleteSite Admin
    #34000
    You must be logged in to see this reply.
    estunt
    #34013
    You must be logged in to see this reply.
    ThemeCompleteSite Admin
    #34014
    You must be logged in to see this reply.
    estunt
    #34015
    You must be logged in to see this reply.
    ThemeCompleteSite Admin
    #34016
    You must be logged in to see this reply.
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

No access!

You do not have permission to post to this forum.