Bit hard to tell without knowing your store url, but one thing to look out for is if you have additional payment options or Ajax cart enabled. These bypass the regular HTML submit function so the additional properties are not passed through.
Did you ever figure this out? Iām having the same issue with Studio theme. The line item properties show up on the product page but not in the cart. Iāve figured out how to fix it in other older themes but havenāt been able to figure it out for this new 2.0 theme.
In Shopify 2.0 main product template has two form one containing hidden page type and product ID.
Another which have variant list visible on product page. Please add your line item in second form tag which has type data-type="add-to-cart-form**"** .
Go to theme/edit code, then open up āsectionsā on the left and find the one called main-product.liquid. Then locate this line of code (On mine it is around line 472):
Right below that is where you want to enter your code from the line item property generator. Then it should work and show up in the cart.
That solution will work if you want the same fields to show up on every product. If you only want them on certain products it gets a bit more complicated. If thatās your situation let me know and Iāll try to figure out the best way to explain it!
Thanks for this. It seems to have half worked for me. The properties are showing on the product page, however they still donāt show in the cart when the fields are filled, and Iām wondering if it is because of this app Iām using, could it be overwriting the code? the app is Measurement price Calculator. any insight would be helpful thanks.
Iām not sure if the app would be affecting it. Make sure that youāve put the line item property code somewhere before the end of the 2nd form on the main product section. Hereās what my code looks like - I showed where to put the line item code in bold. That made it work for me on Studio theme, other themes may be different and I donāt know if your app is affecting it somehow. Good luckā¦hope it will help!
I have done exactly this. The theme Iām using is called Ride. the properties show on the Product page but do not show up in the cart. However, the properties crated from the measurement app Iām using do all show up.
I Donāt really know much about coding but I am good at following instructions. at a loss here. this sucks shouldnāt be this difficult.