• Resolved uliseu

    (@uliseu)


    We have troubles with checkout in woocomerce with anypaypal plugin.

    If the purchase sums up to a whole number like 1 kilo or 2 kilo in the quantity field on the card-page or checkout-page, every plugin works well. But we sell also in decimal numbers like 1,5 kilo and then the error occurs.

    /purchase_units/@reference_id==’wc_order_2Z0JFElj6sbtF’/items/0/quantity The value of a field does not conform to the expected format.

    Please help, what can we do?

    Thanks Christiane

    • This topic was modified 1 year, 8 months ago by uliseu.

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

Viewing 1 replies (of 1 total)
  • Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @uliseu

    I’m not sure PayPal supports decimal quantities, so usually the line items should be removed, as it would otherwise result in an error like the one you shared.

    The PayPal Payments plugin is supposed to do this automatically. I also just gave it a try with this plugin and it worked as expected. There were no errors and when I had whole quantities in my cart, the line items were sent to PayPal and when there were fractional quantities, the line items were dropped with no error.

    With the latest version, the line items can also be always dropped by adding a filter:

    add_filter( 'ppcp_ditch_items_breakdown', '__return_true' );

    This filter would need to be added to the functions.php of the active (child) theme. But this would remove the items details for all PayPal orders and is not a great solution.

    Instead of trying to work around this, we are interested in better understanding how to reproduce the error. Can you please tell us more about how you enabled the decimal quantities?
    If we can manage to reproduce the error, we may be able to provide a better solution for you.

    Thanks!

    Kind regards,
    Niklas

Viewing 1 replies (of 1 total)
  • The topic ‘The value of a field does not conform to the expected format.’ is closed to new replies.