Home Forums WoodMart support forum how to make paypal not get the product info

how to make paypal not get the product info

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #611347

    bestshop24h
    Participant

    hi
    how to make paypal not get the product info when customer place an order by paypal?

    or could you recommend a reviewed good plugin

    sincerely

    #611486

    Hung Pham
    Keymaster

    Hi bestshop24h,

    Thanks for reaching to us and appreciate your patience.

    WoodMart theme does not have the option to control that and We are unable to provide such recommendations as we have not officially tested such plugins with WoodMart.

    For specialized assistance and potential solutions, I kindly suggest that you reach out directly to WooCommerce plugin support on the plugin support forum https://wordpress.org/support/plugin/woocommerce/, who are better equipped to provide you with the guidance you requires.

    Thanks for understanding our limitations.

    Regards,

    #612655

    bestshop24h
    Participant

    chatgpt said:

    Add the following code to your theme’s functions.php file or use a Code Snippets plugin:

    add_filter('woocommerce_paypal_args', 'remove_product_details_from_paypal');
    
    function remove_product_details_from_paypal($paypal_args) {
        // Keep only the total amount and remove line items
        foreach ($paypal_args as $key => $value) {
            if (strpos($key, 'item_name_') !== false || strpos($key, 'quantity_') !== false) {
                unset($paypal_args[$key]);
            }
        }
        return $paypal_args;
    }
    

    havenot tried, not sure whether it works or not,record for later..

    #612711

    Hung Pham
    Keymaster

    Hi bestshop24h,

    Unfortunately, complicated customization is out of our basic support.

    Thanks for understanding our limitations. Let me know if you have any questions.

    Kind Regards

Viewing 4 posts - 1 through 4 (of 4 total)