- Issue created by @Anybody
- 🇳🇿New Zealand john pitcairn
I dunno. This module operates at the single variation entity level, and I would like it to stay that way. It really does sound like a job for views.
- 🇩🇪Germany Anybody Porta Westfalica
Thanks for the feedback @John, I agree that's a valid point. That means, we should better create a separate module for that.
Still ✨ Provide views integration (add to cart form) Active would help then.
Can we leave this issue open to document the need and ideas, until someone (or me) creates that separate module? - 🇳🇿New Zealand john pitcairn
Is there any reason you can't add a views field of "rendered entity" in your view that compares variations, and set that to use a view mode that only displays the add to cart form?
You can't use the rewrite option on that field (it will strip form tags), but otherwise it should work.
- Status changed to Closed: works as designed
about 1 year ago 12:11am 27 October 2023 - 🇳🇿New Zealand john pitcairn
I'm closing this. The solution I recommend is to build the comparison view you need, and add a rendered entity field to display the add-to-cart form for each row.
The requirements for the comparison view will be different for every site depending on the product variation fields and attributes, so I don't feel it is a good candidate for a generic solution. Existing tools should be sufficient to build what you need.
- 🇩🇪Germany Anybody Porta Westfalica
Hi @John Pitcairn yes thanks, totally fine! I had this task on my list and still have. But your points are correct and even if we build something like that, I can do that in contrib. I'll let you know then.
Thanks for the conversation and your feedback! :)