Hi @unzge,
Are you maybe using the “Fluid Checkout for WooCommerce – PRO” plugin?
If so, please try activating the following code snippet:
/**
* PDF Invoices & Packing Slips for WooCommerce:
* Replace <dd> with <p> in the item meta HTML markup if the "Fluid Checkout for WooCommerce - PRO" is activated.
*/
add_filter( 'wpo_wcpdf_html_filters', function( $filters ) {
$filters[] = array( 'woocommerce_display_item_meta', 'wpo_wcpdf_replace_dd_with_p_tags_item_meta', 9999, 3 );
return $filters;
} );
function wpo_wcpdf_replace_dd_with_p_tags_item_meta( $html, $item, $args ) {
if ( class_exists( 'FluidCheckout_PRO' ) ) {
$html = str_replace( '<dd>', '<p>', $html );
$html = str_replace( '</dd>', '</p>', $html );
}
return $html;
}
The code above restores the default HTML markup, which is overridden by the plugin I mentioned previously, changing the default <p>
tags with <dd>
tags.
Let me know if it fixed the issue, or not!