Jump to content

Download all invoices fot validated orders


wiros

Recommended Posts

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?

image (2).png

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 year later...
  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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...