Viewing 1 replies (of 1 total)
  • Hi,

    AD 1) in file woocommerce-delivery-notes\woocommerce-delivery-notes.php edit function wcdn_company_logo() to this

    /**
     * Show logo html
     */
    if ( !function_exists( 'wcdn_company_logo' ) ) {
    	function wcdn_company_logo() {
    		global $wcdn;
    		$attachment_id = wcdn_get_company_logo_id();
    		$company = $wcdn->settings->get_setting( 'custom_company_name' );
    		if( $attachment_id ) {
    			$attachment_src = wp_get_attachment_image_src( $attachment_id, 'full', false );
    
    			// resize the image to a 1/4 of the original size
    			// to have a printing point density of about 288ppi.
    			?>
    			<img src="<?php echo $attachment_src[0]; ?>"  alt="<?php echo esc_attr( $company ); ?>" />
    			<?php
    		}
    	}
    }

    There was code

    // resize the image to a 1/4 of the original size
    			// to have a printing point density of about 288ppi.
    			?>
    			<img src="<?php echo $attachment_src[0]; ?>" width="<?php echo $attachment_src[1] / 4; ?>" height="<?php echo $attachment_src[2] / 4; ?>" alt="<?php echo esc_attr( $company ); ?>" />
    			<?php

    AD 2)need more information, do you mean company name in address or shop name that You fill in woocommerce settings?

    AD 3)again need more information, I don’t have any web address in footer, perhaps this is caused by Your printer properties (header and footer are set also in printer settings)

Viewing 1 replies (of 1 total)

The topic ‘Company Logo too small’ is closed to new replies.