Hello, I am working on a product configurator page for our store based on the tutorial.
All products offered on that configurator have managed variants with unique SKUs.
The configurator uses a few custom collections to populate dropdowns and galleries that are lighter than going directly to the products collection. It is fairly easy to build up the SKUs based on the selections so that was my plan for the adding to cart button.
I then discovered that the API only allows to add to cart based on the product._id field as far as I have seen. Then I tried to add an additional step to get the product._id by querying the Products collection by sku but that doesn't work with products that have managed variants as the sku field is empty for those and the results come as empty.
It seems the variants are managed on an internal collection, is there any way to query it?
Is there any other way of adding products to the cart dynamically that doesn't involve the _id?