Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter calyweb

    (@calyweb)

    In fact i just add your snippet, and it’s working, but you never corrected it ?

    add_filter(‘wt_rest_request_params’, ‘wt_paypal_remove_line_items’);function wt_paypal_remove_line_items($params){if(!empty($params) && is_array($params)){if(isset($params[‘purchase_units’][0][‘items’])){unset($params[‘purchase_units’][0][‘items’]);}if(isset($params[‘purchase_units’][0][‘amount’][‘breakdown’])){unset($params[‘purchase_units’][0][‘amount’][‘breakdown’]);}}return $params;}

    Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi @calyweb,

    Greetings from WebToffee support.

    The issue is already fixed in the plugin. Since the issue is not faced by all users, it is provided as an option in the plugin.

    You may enable the Remove line item option in the plugin settings page and remove the code snippet.

    Let us know how it goes.

    Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi @calyweb,

    We are assuming that the issue is resolved now. If you are still having trouble with it, you may create a new thread.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Error for variable product with at least 2 quantities’ is closed to new replies.