Don't display decimal if there is none?

This topic is: Resolved
  • Resolved
    Posted in: Final Price  
  • seandjohnsonPurchased
    #20496

    Hi,

    Is there a way I could modify the Final Price plugin to not show decimals if there is none?

    In my themes function.php I've included the below code which is working everywhere except in the price that the plugin displays on the product page.

    /**Remove decimals if there are none**/
    add_filter( 'woocommerce_price_trim_zeros', '__return_true' );

    Thanks!
    🙂

    ThemeCompleteSite Admin
    #20555
    You must be logged in to see this reply.
    seandjohnsonPurchased
    #20576
    You must be logged in to see this reply.
    ThemeCompleteSite Admin
    #20583
    You must be logged in to see this reply.
    seandjohnsonPurchased
    #20600
    You must be logged in to see this reply.
    ThemeCompleteSite Admin
    #20603
    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.