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.