• Resolved damians20171

    (@damians20171)


    Hello, my problem is generating packing slip with variation product.
    Look at the screen shot below:

    https://ibb.co/DQjwt00

    I have a product that have some variations that are added to Product col.
    But as you can see the image in pdf is huge and i need to make it really small like 30x30px.
    The source image is little smaller than this in pdf.
    The image you see must remain the same in the product and only in pdf i would like to make the change.

    There is no html tag for this img in pdf so i can not change the html or css.

    Would you help me please to make it small?
    Thank you in advance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author webtoffee

    (@webtoffee)

    Hi @damians20171,

    Please mention which version of the plugin are you currently installed.

    Thread Starter damians20171

    (@damians20171)

    The current version is 2.7.2. Plugin is now in free edition.

    The second option is just to remove all the images from the product col.

    • This reply was modified 10 months, 3 weeks ago by damians20171.
    • This reply was modified 10 months, 3 weeks ago by damians20171.
    Plugin Author webtoffee

    (@webtoffee)

    Hi @damians20171,

    Please try adding below code in your active theme’s functions.php

    add_filter('wf_pklist_add_custom_css','wt_pklist_product_image_col',10,2);
    function wt_pklist_product_image_col($custom_css,$template_type)
    {
    	if($template_type=='packinglist')
    	{
    		$custom_css.='.wfte_product_image_thumb{max-width:30px !important; max-height:30px !important; width:30px !important; height:30px !important;}';
    	}
    	return $custom_css;
    }
    Thread Starter damians20171

    (@damians20171)

    Hello, unfortunatelly it does not work.

    There is something like wt_pklist_product_image_col in code you wrote.

    My problem is not about product image col but problem is about images in product col.

    I deleted the image col at all so it is not about that col.
    PDF is generated with images of additional fields for woocommerce so it is not Product image and it is not about image col.

    Thank you for your try and i hope for next try of help.

    Plugin Author webtoffee

    (@webtoffee)

    Hi @damians20171,

    You can use the updated code snippet below to hide the meta image.

    add_filter('wf_pklist_add_custom_css','wt_pklist_product_image_col',10,2);
    function wt_pklist_product_image_col($custom_css,$template_type)
    {
    	if($template_type=='invoice' || $template_type=='packinglist')
    	{
    		$custom_css.='.img-material{display:none !important;}';
    	}
    	return $custom_css;
    }
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Changing image size’ is closed to new replies.