• Hello,
    I use the add_filter( ‘woocommerce_price_trim_zeros’, ‘__return_true’); to remove unnecessary zeros but it is not working.

    This plug-in does not apply this filter at line 335 in the file main.php and so on.

    Best regards,
    István Borsányi

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author RazyRx

    (@razyrx)

    Hello,

    Plugin use this function only when option “Visual only” disabled, in other case plugin use JavaScript to replace price on page.

    Regards,
    Oleg

    Thread Starter estalhun

    (@estalhun)

    Hello Oleg,
    I use Visual Only, but the unnecessary zeros are hard to fit on mobile.
    Can you fix it?

    Regards,
    István

    Plugin Author RazyRx

    (@razyrx)

    Hello,

    Visual Only use JavaScript and will ignore most PHP hooks.
    There is no options to change it in plugin settigns or with hooks.
    It can be changed only with additional custom JavaScript that will remove zeros after convert.

    Regards,
    Oleg

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘woocommerce_price_trim_zeros filter problem’ is closed to new replies.