A space to discuss online store customization, theme development, and Liquid templating.
How to add custom inline line items properties to the product page with the new design?
I tried using the UI Element Generator and place it under the "form" object in the "main-product.liquid" but the item properties are not showing in the cart and the required attributes are not working.
Hello @dev12341 ,
Please them inside the from tag not under form tag.
Thanks
Can you please share an example? I tried every possible combination....
Just place your code before
</form> or {% endform %}
That's exactly what I did, but it is not working with the new 2.0 version.
Here is how my code looks inside the section file "main-product.liquid" (below).
But the property is not shown in the checkout cart after the product is added to the cart, AND the "required" attribute is never enforced (that is, it is possible to submit the form with blank value in the new field):