These are chat archives for mirumee/saleor

17th
Apr 2018
Chris A. Qvigstad D.
@chrisaq
Apr 17 2018 11:29
What would be the best way to implement automatic sending of digital products in saleor?
is there a recommended way to extend it or hook into different parts that I havent found?
Filip Kucharczyk
@Pacu2
Apr 17 2018 12:40
I'd hook up into create_order function https://github.com/mirumee/saleor/blob/master/saleor/checkout/views/summary.py#L15-L31
Mind that order might be created by staff from the dashboard as well, that would need different approach
Marcin Gębala
@maarcingebala
Apr 17 2018 12:40
Hi @chrisaq, we don't have automatic fulfillment of digital products yet.
As @Pacu2 suggested, you could try to extend create_order function where order lines are created. You could extend it and for digital items immediately create fulfillments.
Plus add some logic that would actually fulfill them by sending an email to the customer etc.