• Resolved Sami S

    (@sami-sanpakkila)


    Hi,

    I have a problem with a few fields. For example some Paypal transaction fees are doubled and with a dot instead of a comma. Please see screenshot here:

    https://www.dropbox.com/s/j3m4swxbm7nfwy1/Screenshot%202020-10-15%20at%2013.14.40.png?dl=0

    I can see this happen in the preview window. But if I check the Format numbers (use WC decimal separator) -box they look fine in the preview but when exporting the problem remains and some are doubled.

    Also another problem that the Item Tax Rate shows decimals. For example I have set 24 % tax rate the value shows sometimes 24.01 or 24.02 etc.

    Any advice would be appreaciated!

    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author algol.plus

    (@algolplus)

    Hi Sami

    1. please, upload your settings as new ticket to https://algolplus.freshdesk.com/
    use tab Tools to get them.

    2. please, open section “Misc Settings” and add following PHP code.
    thanks, alex

    add_filter('woe_get_order_product_value_tax_rate', function ($value, $order, $item, $product,$item_meta) {
    return round($value);
    }, 10, 5);
    Plugin Author algol.plus

    (@algolplus)

    to whom having same problem with PayPal fee ( meta key “_paypal_transaction_fee”).

    Please, open section “Misc Settings” and add this code.
    thanks, Alex

    add_filter(‘woe_get_order_value__paypal_transaction_fee’, function ($value, $order, $fieldname) {
    $data = explode(“,”, $value);
    return $data[0];
    }, 10, 3);

    billy44

    (@billy44)

    Hello,

    I have the same issue, I tried to add your code but no success. I still have the duplicate Paypal transaction fee with a dot instead of a comma for few orders only. Could you please help on this matter ?

    Many thanks in advance.

    Plugin Author algol.plus

    (@algolplus)

    hello

    please, run phpMyAdmin and check records in table wp_postmeta for these orders.

    Filter by meta_key = _paypal_transaction_fee

    billy44

    (@billy44)

    Thank you for your reply.

    I don’t have any record in table wp_postmeta when filtering
    by meta_key = _paypal_transaction_fee

    Plugin Author algol.plus

    (@algolplus)

    what plugin do you use to accept Paypal payments?

    billy44

    (@billy44)

    This is the native Woocommerce ‘Paypal standard’ method enabled in the woocommerce payment settings tabs

    Plugin Author algol.plus

    (@algolplus)

    please, try this code

    add_filter('woe_get_order_value_PayPal Transaction Fee', function ($value, $order, $fieldname) {
    $data = explode(",", $value);
    return $data[0];
    }, 10, 3);
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Problem exporting some fields: doubling and VAT’ is closed to new replies.