Hey everyone,
I wanted to follow up and close out this discussion. Originally, my intent for connecting a specific variant of my product to a metafield or metaobject, was to exclude a selectable variant from being inventory tracked. It turned out this didn’t work anyways.
Here’s what I ended up doing to resolve my issue by:
- Creating a new page template under “Product” in Shopify. You’ll be modifying this particular template, and
for this example, I’m calling the template Custom
Then, going to my product settings, adding a new block under “Custom Liquid”
Custom Liquid
Here is where you are going to input a code in the custom liquid, that is generated using the link below.
You can select the button type, whether it’s required before customers can add it to check out, or whether or not you want this information captured on the order summary or checkout pages by selecting “show at checkout”, ect.
Under this section “Options if using radio buttons, a drop-down select, or checkbox group”
You can type in the selectable options, and you add your options by breaking up the text using “,”
Once your done, you copy the code in the clipboard below
Link to the UI Generator
https://ui-elements-generator.myshopify.com/pages/line-item-property
Paste your generated code in the custom liquid box.
If done correctly, you’ll see your selectable option pop up to wherever you have arranged your custom variant block. Hit Save if it’s what you want.
Then finally, your going to go to your product editing page and go down to “Theme Template” In the drop box.
You will select your custom product theme template you have created with your custom code, to assign only that specific product to your new variant selection to show up.
In my case, I have named my theme template “Custom” for this example.
If done correctly, it should show only on that specific product page. You can test this by turning on Test mode on shopify payment settings, and test the whole checkout process to make sure you see the variant as a note, in your order summary.
This solves the problem when you want a customer to be able to select a variant as a note, but NOT having it tracked by inventory, without an App.
Thanks to everyone who contributed