Forum Replies Created

Viewing 5 replies - 31 through 35 (of 35 total)
  • Thread Starter Mxlaxe

    (@mxlaxe)

    Sure, I forgot to check the box in the previous reply.

    Thread Starter Mxlaxe

    (@mxlaxe)

    Awesome! I didn’t know there was a meta field for the average.

    Thanks for the fast reply

    Same problem for me, if I enter the acf custom field slug in the “fieds” argument of the shortcode, nothing shows on the form, only the Submit button.
    How to have the ACF custom fileds filtering to work ?

    Thread Starter Mxlaxe

    (@mxlaxe)

    Hi,
    Thanks for the reply. It seems that I have not had the InitiateCheckout event enabled as it was not checked by default and hidden in the Advanced Settings section.

    Maybe you should consider testing if this value is checked or not in the code in order to avoid the javascript error which blocks the checkout process.

    Anyways, with this option checked, there is no error anymore on the checkout page and the order is well taken into account in woocommerce.

    Cheers!

    Hey,

    I came across the same issue, went through all the threads I could find but I finally managed after a few research of my own to find the solution to the transparent PNG backgrounds that go black.

    Here is how:

    Open the ‘image-watermark.php’ file from the plugin folder and go to line 1275 (version 1.3.3 of the plugin), or find the function named ‘private function get_image_resource($filepath, $mime_type)’

    Then, just add this : imagesavealpha($res, true);
    After the line : $res = imagecreatefrompng($filepath);

    I also noticed something weird at the line right after, which was like this:
    $transparent = imagecolorallocatealpha($res, 255, 255, 254, 127);

    I thought the third ‘254’ should be ‘255’ to match the transparency, so I just changed that line too to this:
    $transparent = imagecolorallocatealpha($res, 255, 255, 255, 127);

    After these 2 changes, the function should look like this:

    private function get_image_resource($filepath, $mime_type)
    	{
    		switch($mime_type)
    		{
    			case 'image/jpeg':
    			case 'image/pjpeg':
    				return imagecreatefromjpeg($filepath);
    
    			case 'image/png':
    				$res = imagecreatefrompng($filepath);
                                    imagesavealpha($res, true);
    				$transparent = imagecolorallocatealpha($res, 255, 255, 255, 127);
    				imagefilledrectangle($res, 0, 0, imagesx($res), imagesy($res), $transparent);
    				return $res;
    
    			default:
    				return FALSE;
    		}
    	}

    Hope this helps! it was such a shame that this beautiful plugin was missing that.
    Maybe the author should consider updating so this doesn’t happen anymore 😉

    Thanks again for the amazing plugin!

Viewing 5 replies - 31 through 35 (of 35 total)