Skip to content

Instantly share code, notes, and snippets.

@webtoffee-git
Created December 21, 2023 07:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save webtoffee-git/385d612e9fce153c27e9b750485a95ea to your computer and use it in GitHub Desktop.
Save webtoffee-git/385d612e9fce153c27e9b750485a95ea to your computer and use it in GitHub Desktop.
Code to edit the image size in invoices - By WebTofee
<?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