PhpMadman Posted August 13, 2013 Share Posted August 13, 2013 (edited) Hi.I'm trying to add an packing slip. My first step is to add it as an option order status.I got all the code to show it in BO, but it does not set my field in mysql.code is here: https://github.com/P...3ac72e414995107Can anyone tell me what I am missing? Edited September 25, 2013 by PhpMadman (see edit history) Link to comment Share on other sites More sharing options...
PhpMadman Posted August 13, 2013 Author Share Posted August 13, 2013 Nevermind, noticed it just now. It was useing packing_on, changed it to package_on and it worked perfectly. Link to comment Share on other sites More sharing options...
PhpMadman Posted September 25, 2013 Author Share Posted September 25, 2013 (edited) Need some more help on this. I manage to get it working on 1.5.4. Then i merged 1.5.5.0 to my branch, but made some mistakes along the way, and had to re-add the packing-slip after merge. And now it doesn’t work. I reset the packing slip to look like delivery slip in a effort to debug it. This i what i concluded: The functions in PdfController works great. It is when i comes to class PDF.php it fails. As seen here. I added a const TEMPLATE_PACKAGE_SLIP = 'PackageSlip'; And there it is where it fails. It dosent give any messge, it just opens the link in a new window, then nothing. But if I change the TEMPLATE_PACKAGE_SLIP to 'DeliverySlip' it works great. But my template does exist. it can be found here And that template is a clone of DeliverySlip so it shouldn't fail. Check https://github.com/PhpMadman/PrestaShop/tree/W_DeliverySystem to see all the changes. Can anyone see what i'm missing? Edited September 25, 2013 by PhpMadman (see edit history) Link to comment Share on other sites More sharing options...
PhpMadman Posted September 26, 2013 Author Share Posted September 26, 2013 Done some more debuging. In PDF.php in function getTemplateObject it fails at line: if (class_exists($classname)) So for some reason it does not get loaded as class. Can't see why tho... 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