wiros Posted April 15, 2022 Share Posted April 15, 2022 I like to have a script that can download all pdf invoices from the orders that will be send at 1 day. In PS 1.4 we had this function, but in PS 1.7 the function generate invoice does not seem to work. How can I down all invoice with the specific order state? Link to comment Share on other sites More sharing options...
Knowband Plugins Posted April 26, 2022 Share Posted April 26, 2022 In PS 1.7 there is already an option to download the Order Invoices according to the Order State. Screenshot: https://www.awesomescreenshot.com/image/26287725?key=10c9cff4603a89e309cde30ebdefb508 Link to comment Share on other sites More sharing options...
Nickovitshj Posted May 2, 2023 Share Posted May 2, 2023 On 4/26/2022 at 7:25 PM, Knowband Plugins said: In PS 1.7 there is already an option to download the Order Invoices according to the Order State. Screenshot: https://www.awesomescreenshot.com/image/26287725?key=10c9cff4603a89e309cde30ebdefb508 Expand Correct, but all those invoices are then stored in one pdf file. It would be way more usefull if it would generate all of them as seperate files with the invoice prefix and number Link to comment Share on other sites More sharing options...
JBW Posted May 3, 2023 Share Posted May 3, 2023 As you are asking in Developer forum: In (later) 1.7. versions the invoice PDFs are generated in src\PrestaShopBundle\Controller\Admin\Sell\Order\OrderController.php. You can decorate the corresponding service or you create a new standalone script using PDF class Link to comment Share on other sites More sharing options...
Nickovitshj Posted May 3, 2023 Share Posted May 3, 2023 I did find another solution that works for me. I'm using the combined .pdf file. Next i'm using PDFsam (open source/free) With that tool I can split the invoices and give them the corresponding number. 1 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