I need to display additional order information on checkout page through cart page.
Can any one help me for this.
2
You can add additional order information on checkout page through cart attribute.
For this add below code in shopify cart.liquid file between the <form> and </form> tag. The form field will appear wherever you place the code.
<form>
</form>
<p class="cart-attribute__field"> <label for="your-name">Your name</label> <input id="your-name" type="text" name="attributes[Your name]" value="{{ cart.attributes["Your name"] }}"> </p>
You can also check this link : https://ui-elements-generator.myshopify.com/pages/cart-attribute
Use {{ cart.attributes["Your name"] }} on your checkout.liquid to display the desired option.
{{ cart.attributes["Your name"] }}
checkout.liquid
Click here to cancel reply.
2
Answers
You can add additional order information on checkout page through cart attribute.
For this add below code in shopify cart.liquid file between the
<form>
and</form>
tag. The form field will appear wherever you place the code.You can also check this link : https://ui-elements-generator.myshopify.com/pages/cart-attribute
Use
{{ cart.attributes["Your name"] }}
on yourcheckout.liquid
to display the desired option.