Name of product property shows on invoice

[ad_1]

Hi @peetveerbeek,

Could you please send a screenshot of a test order, to see an example, so I can try to provide you with some advice or a code snippet to solve it? You can use to upload the screenshot and share the image URL here.

Hi @yordansoares

Thanks for your quick reply. I upload the screenshot:

Thanks for sending the screenshot, @peetveerbeek!

Please add this code snippet to your site to see if this is hidden in your PDF documents:

/**
 * WooCommerce PDF Invoices & Packing Slips
 * Remove item meta from the PDF documents
 */
add_action( 'wpo_wcpdf_custom_styles', function( $document_type, $document ) {
	?>
	.product .item-meta,
	.product .weight {
		display: none;
	}
	<?php
}, 10, 2 );

If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters

Hi @yordansoares,

I’ve entered the code through Code Snippets and get this error:

Do not panic

The code snippet you are trying to save causes a fatal error on line number 5:
syntax error, unexpected '&'

The previous version of the snippet is unchanged, and the rest of the website should function normally as before.

Use the back button in your browser to return to the previous page and try to correct the code error. If you prefer, you can close this page and discard the changes you just made. No changes will be made to this website.

Here is a screenshot of the code as entered:

Thanks for attaching that screenshot, @peetveerbeek!

This makes me think that you copied the code snippet from the email notification, right? If so, please copy the code snippet from my reply in WordPress.org here:

You might be right! Copied it from WordPress.org and now it works!

Thanks a lot!!!

Thanks for confirming that, @peetveerbeek!

Let us know if you need anything else 😉

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer