This code adds a custom text area to the store owners single product data tab on the Edit Product screen enabling a custom product description to be added and replaced on all payment and order notifications including :
- Order-received (Thank you) page
- Email notifications from PayPal, WooCommerce and Credit Card providers
- My Account Orders > Single order details
- PayPal > Activities > Payments Sent > Transaction Details > Order Details
This way any product you sell will display a totally different description as both the main description and product short description are replaced when a custom one is added otherwise the default is shown.
Note : By default, the product/item description is not shown when using PayPal Standard which is included in WooCommerce core without the need to install any PayPal plugins.
PayPal Standard can be activated by adding the following line of PHP code to the end of your child themes functions file or custom functionality plugin.
add_filter( 'woocommerce_should_load_paypal_standard', '__return_true' );
Make sure any PayPal plugins you have installed are deactivated if you want to use PayPal standard. Once installed, you can then navigate to WooCommerce > Settings > Payments > All Payment Methods and configure your PayPal settings.
You can install the .zip folder as a new plugin or copy & paste the PHP from the functions.php file to the end of your child themes functions file or custom functionality plugin.
These solutions may also help :