ReBoot Posted November 28, 2010 Share Posted November 28, 2010 Hello everyone,I'm new here and new with my Prestashop experience That's great to be the part of Prestashop family with great support, help and ideas which share people here and with great, easy and simple software for online shops. Thank a lot Prestashop team for everything Now about my question! I want in customer PDF invoice place logo as watermark in background. I was looking all over the forum and support, but not found any solutions. I think a lot of users would like to have this solution for invoices. So maybe somebody could share here how and where I suppose to place logo as watermark in background of PDF invoice also this option could be usefull if it could be as the module so admin can make change of background watermark in invoice at any time Thank you very much in advance!Regards,Darius Link to comment Share on other sites More sharing options...
shokinro Posted November 28, 2010 Share Posted November 28, 2010 If you are familiar with coding, you can take look into following file/classes/PDF.php Link to comment Share on other sites More sharing options...
ReBoot Posted November 28, 2010 Author Share Posted November 28, 2010 Sorry not so fammiliar, that I will found exactly lines to place background picture code I'm not that pro with coding. It's more for hobby to build my first online store with Prestashop. Any solutions and help with that would be great, I think not just for me alone. Thank you in advance.Regards,Darius Link to comment Share on other sites More sharing options...
shokinro Posted November 29, 2010 Share Posted November 29, 2010 Here are two lines (line 139, 140 PrestaShop 1.3.2.3)related to logo image in PDF invoice. if (file_exists(_PS_IMG_DIR_.'/logo.jpg')) $this->Image(_PS_IMG_DIR_.'/logo.jpg', 10, 8, 0, 15); Hope this help Link to comment Share on other sites More sharing options...
ReBoot Posted November 29, 2010 Author Share Posted November 29, 2010 Thanks shokinro. Lines to logo I found thats ok, but my question is, how can I make watermark in background on PDF invoice, it would look more professional invoice. How and where I must to place additional logo code, to NOT replace logo in invoice, but additionaly attach logo as watermark in invoice. Because as I understand it suppose to be additional code, to pick up image of logo from images and place it as part of background as watermark on invoice white page, under the all tables and information in invoice I hope I explaned my right Regards,Darius Link to comment Share on other sites More sharing options...
shokinro Posted November 29, 2010 Share Posted November 29, 2010 I haven't try it by myself, I am kind of busy at this time, it is not guaranteed to be working (sorry), but you can have a try by yourself to do as following.1. create a big image watermark that could cover the whole page (or what ever size you want to cover your page)2. put your image to a the "imig" folder3. Then change following "10, 8, 0, 15" to the proper number that make your big image show propery in your page. if (file_exists(_PS_IMG_DIR_.'/logo.jpg')) $this->Image(_PS_IMG_DIR_.'/logo.jpg', 10, 8, 0, 15); Hope someone could give you some more detailed information. Link to comment Share on other sites More sharing options...
ReBoot Posted November 29, 2010 Author Share Posted November 29, 2010 I realy thank you for your help shokinro You talk about logo function in header configuration, but I need to keep this as it is and additional I need to place image as background. same as you would like to change for example background color, just instead of color you place image somehow Code you wrote bhere I could actualy use for background image, just change name from LOGO.JPG, change in for example Background.jpg or whatever, just I need to know where I can copy-paste this code in to file to make it show as background. As I understand it suppose to be done by Main PDF, i quess under either /** @var array Special PDF params such encoding and font */ or /** * Constructor */ configuration.Regards,Darius Link to comment Share on other sites More sharing options...
ReBoot Posted December 1, 2010 Author Share Posted December 1, 2010 sorry! must bump it! Link to comment Share on other sites More sharing options...
Recommended Posts