• Resolved ChrisL

    (@chrslcy)


    I’ve looked at the documentation, but cannot work out how to make sure that the Company Name of the billing address is bold. Can you help?

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

    (@yordansoares)

    Hi @chrslcy,

    Try with this code snippet to bold the billing company name on the documents:

    /**
     * PDF Invoices & Packing Slips for WooCommerce:
     * Bold the Billing Company name on the documents
     */
    add_filter( 'wpo_wcpdf_billing_address', function( $address, $document ){
        if ( $order = $document->order ) {
    		if ( $company_name = $order->get_billing_company() ) {
    			$address = str_replace( $company_name, "<strong>{$company_name}</strong>",  $address );
    		}
        }
    	return $address;
    }, 999, 2 );

    Another way to achieve this is using the Address customization area, included in Professional extension. This allows you to customize both the billing and shipping addresses, using several placeholders available (you can add custom fields as well!):

    You can use HTML to format and apply styles to your billing and shipping address.

    Please note that, since www.ads-software.com does not allow us to provide support for paid plugins, or answering pre-sale questions in this forum, please contact us by email to?[email protected], if you have further questions regarding the Professional extension.

    Thread Starter ChrisL

    (@chrslcy)

    Perfect. Thank you very much for the prompt reply!

    Plugin Contributor Yordan Soares

    (@yordansoares)

    We are very happy to help, @chrslcy!

    Do not hesitate to write again if you need more help ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Bold Billing Company Name’ is closed to new replies.