• Resolved fkoomek

    (@fkoomek)


    Hello.
    I would like to ask. Is somehow possible to enable rounding only for shipping?
    I have a little problem.
    Now rounding is disabled and I use 0 decimals for all currencies. So prices look like 200K? €9… I have a problem with a specific payment Gateway called GoPay.
    When I click Place order, the shipping price is transferred there with 2 decimals. for example €9.36. The product price is correct with 0 decimals.
    When I enable rounding in your plugin with precision 0 decimals, then it’s ok, shipping price is transferred correctly.
    But I don’t want to enable rounding for everything because I made some customization to my shop and it doesn’t work well then.
    The only thing I need is to enable rounding for shipping to fix this. I could edit it directly in the source code, just need to point somewhere ?? Thanks
    And I’ve already discussed this problem with the payment gateway developer with no luck.

    I found for example this filter:

    add_filter( 'alg_wc_currency_switcher_correction', function ( $correction, $currency ) {
        if ( $currency == 'BTC' ) {
            $correction['rounding'] = 'no_round';
            $correction['pretty_price'] = 'no';
        }
        return $correction;
    }, 10, 2 );

    but it affects everything
    Thank you.
    Best Regards

    • This topic was modified 4 years, 4 months ago by fkoomek.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘round only shipping rates’ is closed to new replies.