New Landing How can we help? Atelier Remove decimals form front page in Swift Builder

Viewing 5 posts - 1 through 5 (of 5 total)
  • Posted in: Atelier
  • #291257
    RamonaBejan
    Member
    Post count: 24

    How can i remove the last .00 form swift builder. I need them to not be displayed and to set in woocommerce to 0 is not an option because my online payment requires them.
    eg:
    http://image.prntscr.com/image/978aebf0a61f4370bc877900c15f4a04.png

    Thanks.

    #291258
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have managed to resolve the issue. So please check it now.
    Thanks
    Mohammad

    #291273
    3969120a
    Member
    Post count: 159

    we would appreciate reading the fix…

    #291277
    RamonaBejan
    Member
    Post count: 24

    There is no fix.
    He set the decimals in woocommerce settings from 2 to 0.

    And if u want to send data with decimals paste this in your functions.php of your teheme.

    add_filter( 'woocommerce_price_trim_zeros', 'wc_hide_trailing_zeros', 10, 1 );
    function wc_hide_trailing_zeros( $trim ) {
        global $woocommerce;
        if($woocommerce && is_woocommerce()){
                return true;
                }
    }

    hope this works for you too!

    #291294
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Great, thanks

    – Kyle

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register