Django-oscar: Order PDFs

Created on 7 Feb 2021  Â·  7Comments  Â·  Source: django-oscar/django-oscar

Most helpful comment

If you ask me, I would implement django-weasyprint out of the box. It is simple, efficient and with a free and permissive license for commercial projects. Reportlab is probably more powerful and/or versatile, but I don't think it contributes more to this task than django-weasyprint.

As django-weasyprint already comes with a CBV and a Mixin the integration should be trivial.

All 7 comments

If you ask me, I would implement django-weasyprint out of the box. It is simple, efficient and with a free and permissive license for commercial projects. Reportlab is probably more powerful and/or versatile, but I don't think it contributes more to this task than django-weasyprint.

As django-weasyprint already comes with a CBV and a Mixin the integration should be trivial.

ping @sladinji , perhaps you'd like to contribute your PDF implementation?

I feel like https://github.com/django-oscar/django-oscar-invoices might already be addressing this use case - and if it isn't then extending it to do so might be a good approach.

Ping @samitnuk and @sasha0 .

For starters, I've created https://github.com/django-oscar/django-oscar-invoices/pull/30 so it is able to be used with modern Django+Oscar environments.

Pong.

Thanks, we'll review soon.

I feel like https://github.com/django-oscar/django-oscar-invoices might already be addressing this use case - and if it isn't then extending it to do so might be a good approach.

Our intention here is that. Use oscar-invoices and extend it with weasyprint. But now we are too busy to make it an installable plugin :\

I'll be glad you use it ! I did it some years ago but I don't think there's
any update to do.

As you can see on the link you provided (
https://github.com/sladinji/blousebrothers/blob/461de3ba011c0aaed3f0014136c4497b6890d086/blousebrothers/dashboard/orders/views.py
)
you can share the same template between html and pdf rendering.html. And
the only skills required to custom pdf invoices are html and css coding.

Unfortunately, I won't be able to contribute more than that those days...

On Wed, Feb 10, 2021 at 8:19 PM John Vandenberg notifications@github.com
wrote:

ping @sladinji https://github.com/sladinji , perhaps you'd like to
contribute your PDF implementation?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/django-oscar/django-oscar/issues/3639#issuecomment-776953435,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB7KR72EVNQDOWA6PHHFHXTS6LL45ANCNFSM4XHPBPPA
.

Was this page helpful?
0 / 5 - 0 ratings