bedandw Posted July 27, 2016 Share Posted July 27, 2016 Hi - I am not able to print my supply order after creating it. PDF print works perfect for invoices, other order related items. On investigating am not able to locate a PS db called Supply Order. a) Order is created succesfully in Admin panel (see screen shot) b- Blank when print option is used c) Cannot find Supply Order tableSupply order issue.pdf Link to comment Share on other sites More sharing options...
bedandw Posted July 27, 2016 Author Share Posted July 27, 2016 Thanks Ndiaga, does it rely on the PS Supply order module and DB to be present? The reason I ask is am not sure my install has the right tables unless you are creating it via your module. I like your giving, sharing theme.. thank you! Link to comment Share on other sites More sharing options...
gabdara Posted July 28, 2016 Share Posted July 28, 2016 The supply order should be saved into DB table ps_supply_order. In your phpmyadmin search, click below where it says something like "7 other results found" and you will see it. But the first thing you should do is to enable development mode to see what PHP error you get when you try to print, instead of a blank page. 1 Link to comment Share on other sites More sharing options...
bedandw Posted July 28, 2016 Author Share Posted July 28, 2016 THANK YOU so far Gabdara. I found this when turning on Dev Mode as indicated by El Patron.. how can I corrrect the error please? Fatal error: Call to undefined method HTMLTemplateSupplyOrderForm::getPagination() in /home/bedandwo/public_html/classes/pdf/PDF.php on line 95 I did find the table as well, again thanks to you. Link to comment Share on other sites More sharing options...
gabdara Posted July 29, 2016 Share Posted July 29, 2016 What version of PrestaShop do you have? This is the latest fix of PDF generation that is included in PS 1.6.1.6. If you don't make a full upgrade, I think is safe to copy these two files [classes/pdf/HTMLTemplate.php, classes/pdf/HTMLTemplateInvoice.php] from the latest version in your own store. 1 Link to comment Share on other sites More sharing options...
bedandw Posted July 29, 2016 Author Share Posted July 29, 2016 THANK YOU SO MUCH!! I had upgraded to 1.6.1.6 a few weeks back and it brought a few things down. I now upgraded again, this PDF issue is now resolved! Hoping the site holds up. Thanks for helping, Gabdara. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now