how to make paypal not get the product info
-
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
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,
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..
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