Closed maxpdesign closed 2 years ago
Thats a great idea. Thank you. I'll work on this.
I'm getting the same issue - please let me know if I can supply any info to help diagnose and fix this.
Thank you for your patience with this. I've pushed the fix with v1.0.10 I've been working on a new version for Craft4 which is more stable and with some new features.
Hello,
I'm getting an error when I use "Find best selling products" functionality.
Probably because it is trying to get a purchasable that has been deleted. The docs mention this scenario here: https://craftcms.com/docs/commerce/3.x/purchasables.html#purchasables-and-line-items
Is it possible that you can change the code so it uses the snapshot of the lineItem instead of the getPurchasable() method? Because the getPurchasable() method is returning null if the purchasable is deleted.
Thanks in advance!