• Resolved cmvila

    (@cmvila)


    Hi,

    I noticed that your plugin gets the product price from the product meta instead of fetching the price set in the cart. This causes an issue with products with dynamic pricing causing paypal to send an error:

    ‘This transaction has been completed, but the total of items in the cart did not match the total of all items.’

    I updated this file to fix the issue on my end.

    woocommerce-paypal-pro-payment-gateway/woo-paypal-pro-gateway-class.php Lines: 383 – 384

    //$prod_price = get_post_meta($values['product_id'] , '_price', true);
    $prod_price = $values['data']->get_price();

    Hope you can check this out and include in your next update.

    Thanks

    • This topic was modified 4 years, 5 months ago by cmvila.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support mbrsolution

    (@mbrsolution)

    Thank you for sharing your fix with us. I have submitted a message to the developers to investigate further your solution.

    Thank you

    Plugin Author wp.insider

    (@wpinsider-1)

    Thank you. I have updated the addon with the change. This should fix that amount error with variable product with dynamic pricing.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Product with Dynamic Pricing’ is closed to new replies.