Horizon Theme is Missing main-cart-items.liquid - How to Add Custom Cart Fields?

I’m trying to add some custom fields to the Cart, including a date picker, using the instructions in this Help article:

https://help.shopify.com/en/manual/online-store/themes/customizing-themes/common-customizations/add-date-picker

However, our shop is using Horizon 3.3.0 and there is no main-cart-items.liquid file in the sections directory. Does anyone know where to insert custom Cart fields in Horizon-based themes where this file isn’t present?

In case anybody needs this info, I was able to add custom fields to be used as cart attributes in snippets/cart-products.liquid. You should insert the fields right before the closing tag, and make sure that all of your inputs have the attribute ‘form=“cart-form”‘ set so that they get added to the data sent to checkout when the cart is submitted.

Note this is only for the cart page. I haven’t looked in to how to add these to the cart panel.

You can try adding code to main-cart.liquid instead or cart-products.liquid files.

Yes, I ended up using cart-products.liquid. The issue with main-cart.liquid is that it doesn’t contain any tags so you’d need to do additional work to make sure the input values get added to the Cart submission.

This is really helpful. A lot of people assume the file is missing, when in reality the newer theme structure handles things differently. Thanks for pointing that out and saving others some troubleshooting time.