Title: 200: parsererror
Last modified: October 31, 2023

---

# 200: parsererror

 *  Resolved [ayrpin](https://wordpress.org/support/users/ayrpin/)
 * (@ayrpin)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/200-parsererror-6/)
 * I have added the following code that I have seen in some other ticket but I still
   get error 200: parsererror
 * /** * PDF Invoices & Packing Slips for WooCommerce: * Incluye el NIF en los documentos
   PDF */ add_filter( ‘wpo_wcpdf_billing_address’, function( $address, $document){
   if ( ( $order = $document->order ) && ( $nif = $order->get_meta( ‘NIF’ ) ) ) {
   $address .= sprintf( ‘<p>CIF/DNI/NIE: %s</p>’, $nif ); } return $address; }, 
   10, 2 );
 * thanks

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Contributor [dwpriv](https://wordpress.org/support/users/dwpriv/)
 * (@dwpriv)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/200-parsererror-6/#post-17164920)
 * Could you share the error you’re getting, please?
 *  Thread Starter [ayrpin](https://wordpress.org/support/users/ayrpin/)
 * (@ayrpin)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/200-parsererror-6/#post-17166164)
 * I add here a screenshot of the error in the control panel
 * [https://www.dropbox.com/t/JRIvHBFzsDUaNUDQ](https://www.dropbox.com/t/JRIvHBFzsDUaNUDQ)
 * Thanks
 *  Plugin Contributor [dwpriv](https://wordpress.org/support/users/dwpriv/)
 * (@dwpriv)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/200-parsererror-6/#post-17167510)
 * Try replacing your snippet with this one
 *     ```wp-block-code
       /** * PDF Invoices & Packing Slips for WooCommerce: * Incluye el NIF en los documentos PDF */
       add_filter( 'wpo_wcpdf_billing_address', function( $address, $document ) {
       	if ( ( $order = $document->order ) && ( $nif = $order->get_meta( 'NIF' ) ) ) {
       		$address .= sprintf( '<p>CIF/DNI/NIE: %s</p>', $nif );
       	}
       	return $address;
       }, 10, 2 );
       ```
   
 *  Thread Starter [ayrpin](https://wordpress.org/support/users/ayrpin/)
 * (@ayrpin)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/200-parsererror-6/#post-17174210)
 * nothing…I keep getting this error message
 *  Plugin Contributor [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * (@yordansoares)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/200-parsererror-6/#post-17177422)
 * Hi [@ayrpin](https://wordpress.org/support/users/ayrpin/):
 * Could you check the WooCommerce logs to see if there are errors with the `wpo-
   wcpdf` or `fatal-errors` prefix? If so, please share the logs with us in a paste
   on [https://pastebin.com/](https://pastebin.com/) (please set the paste expiration
   to 1 week, so it is automatic deleted in 7 days).
 * You’ll find the logs under **WooCommerce > Status > Logs**. See [Where to find error logs](https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/where-to-find-debug-logs/)
 *  Plugin Contributor [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * (@yordansoares)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/200-parsererror-6/#post-17227283)
 * Hi [@ayrpin](https://wordpress.org/support/users/ayrpin/):
 * Since we haven’t heard back from you in the last two weeks, we’re assuming you
   solved this issue, so I’ll go ahead and mark this ticket as **Resolved**.
 * Feel free to reply to this topic is you still need help with this, or [open a new topic](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/#new-topic-0)
   if you have any other questions!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘200: parsererror’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pdf-invoices-packing-slips/assets/icon-256x256.
   png?rev=2189942)
 * [PDF Invoices & Packing Slips for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/200-parsererror-6/#post-17227283)
 * Status: resolved