fabian.leisibach Posted August 9, 2016 Share Posted August 9, 2016 Dear all, I'm new to prestashop and I'm currently trying to develop a module that is supposed to print a QR code on every delivery slip. In my module I generate the QR codes. To get them on the delivery slip I modified prestashop in /pdf (added a new .tpl file) and changed HTMLTemplateDeliverySlip.php in /classes/pdf. I know this is not the correct way to do it, but like this it worked. Now I want to do it rather the correct way. I read about this great override feature, but I can't get it to work. I created a module named bonsaidelverymodule with presta's module builder. In the module folder i created subfolders (bonsaimoduledelivery/override/classes/pdf). In there I extended the HTMLTemplateDeliverySlip as described in the documentation with HTMLTemplateDeliverySlipCore and saved it as HTMLTemplateDeliverySlip.php. Now when I try to install my module i get following Error: Unable to install override: Class HTMLTemplateDeliverySlipOverride57a834252d48c does not exist What i tried until now: - I deleted to HTMLTemplateDeliverySlip.php, and without there is no error - deleted class_index.php file in /cache Does anyone have a hint for me, what I might do wrong? And what would be the correct way to add the .tpl file to /pdf within my module? I'm running on prestashop 1.6.1.6 HTMLTemplateDeliverySlip.php Link to comment Share on other sites More sharing options...
Vipul Hadiya Posted August 9, 2016 Share Posted August 9, 2016 Once install your module in any fresh Prestashop installation. And check do you have same error or it is different result. Link to comment Share on other sites More sharing options...
fabian.leisibach Posted August 9, 2016 Author Share Posted August 9, 2016 (edited) Dear Vipul I made a fresh install of prestashop. Problem still the same. Any other guesses? And Thank you very much for your quick reply! update 10.08.2016, 10:47 a: I put the HTMLTemplateDeliverySlip.php - file into the /override/classes/pdf folder. After deleting class_index.php file in /cache, this worked perfectly. Edited August 10, 2016 by fabian.leisibach (see edit history) Link to comment Share on other sites More sharing options...
sfweb Posted November 21, 2020 Share Posted November 21, 2020 On 8/9/2016 at 5:29 PM, fabian.leisibach said: Dear all, I'm new to prestashop and I'm currently trying to develop a module that is supposed to print a QR code on every delivery slip. In my module I generate the QR codes. To get them on the delivery slip I modified prestashop in /pdf (added a new .tpl file) and changed HTMLTemplateDeliverySlip.php in /classes/pdf. I know this is not the correct way to do it, but like this it worked. Now I want to do it rather the correct way. I read about this great override feature, but I can't get it to work. I created a module named bonsaidelverymodule with presta's module builder. In the module folder i created subfolders (bonsaimoduledelivery/override/classes/pdf). In there I extended the HTMLTemplateDeliverySlip as described in the documentation with HTMLTemplateDeliverySlipCore and saved it as HTMLTemplateDeliverySlip.php. Now when I try to install my module i get following Error: Unable to install override: Class HTMLTemplateDeliverySlipOverride57a834252d48c does not exist What i tried until now: - I deleted to HTMLTemplateDeliverySlip.php, and without there is no error - deleted class_index.php file in /cache Does anyone have a hint for me, what I might do wrong? And what would be the correct way to add the .tpl file to /pdf within my module? I'm running on prestashop 1.6.1.6 HTMLTemplateDeliverySlip.php 3.39 kB · 5 downloads Hi, I'm having the same problem, did you find a solution? Regards. 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