I guess this is no big issue, but I'm pretty new to Craft Commerce :) I'm trying to code a dynamic template for the product variants page.
This is the scenario: In the shop overview you see every product and all there variants. If you click on a variant image a detail page opens, showing you detailed information about this variant.
How can I access data of the variant (like title, description, asset) dynamically? Based on what the user clicked on?
I've already tried these two answers:
The thing is, I can't use lineItem because the variant is not added to the cart yet. And I didn't manage to get the specific variant over getSegment and the url.