But I need to use the variant.ID for a form but I can’t find an easy way to get the variant.ID of a product that has no variants. The easiest way I can find is using {{ product.variants.first.id }}, view the preview of the page to extract the variant.ID… there has to be a better way? (I need the variant.ID of one product to use on a different product’s page)
This is for products with no variants! So I can’t get it from the URL. I’ve tried a bit of a search on the forum and google but everything is about products with variants.
None of these solutions are something I can tell my clients to do. They’ll go crazy. We ALL need Shopify to either create a quick tool that generates add-to-cart urls for one or multiple products (with and without variants) or just make the only variant number part of the url in admin. I mean, this is ridiculous work to just find an id number that they chose to hide from us in the first place for no good reason.