Shopify themes, liquid, logos, and UX
Hey all!
I have a phone case business and trying to add phone models as metafields on the products (for example: I have a case design called "Foxy". In the product I can choose the phone model (that's the metafield, so it points to a different product)). My problem is that the different "Foxy" cases all called "Foxy" (the url changed regarding the phone model), but in the checkout, it's not showing which one, only the standard variation values. Is there any way to add the metafield value to the checkout (in my case the metafield value: IPhone 15 Pro Max) and order details?
Thank you!
Hi @PBoss ,
We do have to pass the metafield as the line item properties.
<p class="line-item-property__field">
<label for="model">Model</label>
<input id="model" type="text" name="properties[Model]" value="{{ product.metafield.custom.model.value}}">
</p>
Please don't hesitate to reach out if you need further help optimizing or customizing your store. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!
Best Regards,
LuffyOnePiece
That's great! But where do I need to add it?
Thanks!
Hi @PBoss ,
We do need to add the code in the product form.
Thanks
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025