Patch for errors when print invoice and shipping list in Materialize Theme
Materialize template (v.0.80.4) for OpenCart 3.0.x
Credit goes to : trydalcoholic for the perfect and professional opencart theme
Below are the errors :
Warning: imagecreatetruecolor(): Invalid image dimensions in /xxx/system/storagesx/modification/system/library/image.php on line 177
Warning: imagecolorallocate() expects parameter 1 to be resource, boolean given in /xxx/system/storagesx/modification/system/library/image.php on line 185
Warning: imagefilledrectangle() expects parameter 1 to be resource, boolean given in /xxx/system/storagesx/modification/system/library/image.php on line 188
Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in /xxx/system/storagesx/modification/system/library/image.php on line 190
----------------------
Installation:
----------------------
1. Login to OpenCart admin panel -> Extensions -> Extensions Installer -> Click on the upload button -> Locate the installation folder of the extension you are going to install > Open the folder that corresponds to your OpenCart version and select "patch-invoice-print-materialize.ocmod.zip" file from FILES TO UPLOAD folder > After clicking “OK” your extension will be uploaded and a “success” message should appear.
2. Extensions -> Modifications -> Click blue Refresh button on the top right corner to regenerate cache.
Login and write down your comment.
Login my OpenCart Account