Liquid, JavaScript, themes, sales channels
Hi,
Is it possible to create a custom field in the checkout, which value would be passed along when the order is created?
For example lets just call this field asks for your favorite color, and when the order is created... i can see on the order that this customers favorite color is "Green".
Would it be possible to pass this custom field into the order object so it would be possible in the orders section or even when checking the order with the order API
@JonnaWiberg For simple customer|user entered info use Cart Notes, which is a setting in most standard themes.
For more specific info or data shopify calls that type of data Cart attributes, or Line item properties(LIPS) for individual products.
Or in some cases you just used the Cart note https://ui-elements-generator.myshopify.com/pages/cart-attribute
New Feature: Automatic free shipping discounts
Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Buy Paul a ☕ Coffee for more answers or donate to eff.org
Defeat problems ,Learn To Ask Questions The Smart Way
Thank you, im a bit closer now to what i want to achieve. I was able to create a cart attribute... but i can only fill in this value inside the cart... is it possible to fill in this input directly in the checkout instead? i can see on a created order that this value follows along:) i have shopify plus so i can edit the checkout.liquid file if thats any help
@JonnaWiberg If your trying to do instore pickup shopify already has that feature so this may be an XYproblem
https://meta.stackexchange.com/questions/66377/what-is-the-xy-problem/66378#66378
i can only fill in this value inside the cart... is it possible to fill in this input directly in the checkout instead?
That would be much more advanced using checkout attributes instead and you would need to use javascript to add input forms dynamically to the checkout.liquid layout and reload the checkout to get the new state.
In general it can be much simpler to create a more appropriate flow in /cart to support getting what info you rather than trying to hobble your way through hacking /checkout
New Feature: Automatic free shipping discounts
Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Buy Paul a ☕ Coffee for more answers or donate to eff.org
Defeat problems ,Learn To Ask Questions The Smart Way
User | RANK |
---|---|
25 | |
24 | |
8 | |
7 | |
6 |
Explore the 30-30-30 rule, a dynamic social media strategy for new businesses. Learn how t...
By Trevor Sep 20, 2023Discover how to leverage the often overlooked footer of your ecommerce site to gain custom...
By Skye Sep 15, 2023In this blog, we’ll be shining a light on Shopify Partners, Experts, and Affiliates. Who a...
By Imogen Sep 13, 2023