• Resolved unzge

    (@unzge)


    Hi, since a few weeks, the product attributes on the packing slips and invoices are on several lines. How can I fix this?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @unzge,

    Could you please share a screenshot of a testing invoice, so I can understand better what are you referring to?

    Thread Starter unzge

    (@unzge)

    Thread Starter unzge

    (@unzge)

    I tried to reinstall plugin fonts, that didn’t work.

    Plugin Contributor Yordan Soares

    (@yordansoares)

    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!

    Thread Starter unzge

    (@unzge)

    That seems to work, thank you so much!

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @unzge,

    This is a follow-up message to let you know that this issue seems to be solved now in the latest release, because we have improved our styles, so if any third-party use dd?tags in the item meta, the layout should not be affected.

    Could you please try updating the plugin to the latest version, and deactivate the code snippet I shared with you previously, to check whether it is fixed indeed, or not?

    Thread Starter unzge

    (@unzge)

    Hi, it seems to work without the snippet, thank you!

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Thanks for checking, @unzge: I’m very happy to hear that! ????

    Let me know if you need anything else! ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.