Created
December 21, 2023 07:16
-
-
Save webtoffee-git/385d612e9fce153c27e9b750485a95ea to your computer and use it in GitHub Desktop.
Code to edit the image size in invoices - By WebTofee
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter('wf_pklist_add_custom_css','wt_pklist_alter_product_image_col',10,2); | |
function wt_pklist_alter_product_image_col($custom_css,$template_type) | |
{ | |
if( 'invoice' === $template_type ) | |
{ | |
$custom_css.='.wfte_product_image_thumb{ max-width:none !important; max-height:none !important; width:100px !important; }'; | |
} | |
return $custom_css; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment