Do not display the logo images and thumbnails in the pdf file of the "quote"?

If you do not see the logo images and thumbnails in the pdf file of "quote" paste this code into the functions.php of your theme.

This code return the images of logo and thumbnails path instead of URL that isn't supported by some server.

if( defined('YITH_YWRAQ_PREMIUM') ){
add_filter( 'ywraq_pdf_logo', 'ywraq_change_pdf_logo' );
function ywraq_change_pdf_logo( $logo ) {
$logo_id = get_option( 'ywraq_pdf_logo-yith-attachment-id' );
$logo = get_attached_file( $logo_id );
return $logo;
}
add_filter( 'ywraq_pdf_product_thumbnail', 'ywraq_change_pdf_product_thumbnail', 10 , 2 );
function ywraq_change_pdf_product_thumbnail( $url, $id ){
if( $id ){
$url = get_attached_file( $id );
}
return $url;
}

}

 

 

 

Was this article helpful?
0 out of 0 found this helpful

Back to Help Center

Powered by Zendesk