• Resolved tvalades

    (@tvalades)


    Good morning, I’m having problems when creating invoices with the PDF invoices plugin. Investigating the error () I have activated the Store Toolkit for WooCommerce plugin and I get PPOM metadata where the code is malformed. There is no opening tr tag.

    <table class=”table table-bordered”><td>Verde</td></tr></table>

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hey @tvalades

    Thank you for reaching out!

    Could you please give more details such as instructions to be able to reproduce the issue, and screenshots that show your error?

    Have a great day!

    Thread Starter tvalades

    (@tvalades)

    Hi,
    Here you will find screenshots of both the error that appears when making the invoices, the code that appears within the order (I have framed where it appears that it does not have <tr>) and how that one in particular is made.

    But it happens to me with many especially with those that are images

    https://ibb.co/c3PnrRX
    https://ibb.co/CMvrGhn
    https://ibb.co/DQ9gvyn
    https://ibb.co/tKq9fV6
    https://ibb.co/YbMWSZQ
    https://ibb.co/6HBKnwS

    Thanks!!

    Thread Starter tvalades

    (@tvalades)

    I have to be putting this code to deactivate the metadata of the articles to be able to generate the PDFs because the code that forms the table is missing the opening of tr.
    I need a solution please, I can’t be deactivating all the metadata of all the articles

    add_filter( 'wpo_wcpdf_html_filters', function( $filters ) {
    	$filters[] = array( 'woocommerce_order_item_get_formatted_meta_data', 'wpo_remove_specific_item_meta_from_pdf_documents', 999, 2 );
    	return $filters;
    } );
    function wpo_remove_specific_item_meta_from_pdf_documents( $formatted_meta, $item ){
    	foreach( $formatted_meta as $key => $meta ){
    		// Uno por línea
    		$item_meta_disabled = array(
    			'elige_color',
    			'elige_un_color',
    			'elige_un_colgante',
    			'cinta_terciopelo',
    			'cord_n',
    			
    		);
    		if( in_array( $meta->key, $item_meta_disabled ) ) {
    			unset( $formatted_meta[$key] );
    		}
    	}
    	return $formatted_meta;
    }
    Thread Starter tvalades

    (@tvalades)

    Hello?

    Hi @tvalades

    Can you please get a your system report from WP Admin -> WooCommerce -> Status -> System Status -> Get system report and send it to [email protected]

    Please attach the this support topic URL and my name also to the your email.

    I’ll follow up here.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Call to a member function get_cellmap()’ is closed to new replies.