How can i create a volume for every product in Product information section?
Topic summary
A user asked how to add a volume field to the product information section in the Portland theme.
Solution provided:
- Use Shopify Metafields to create a custom volume field
- Navigate to Settings > Custom Data > Products in Shopify admin
- Add a new metafield for volume as a number field with appropriate units
- Enter volume data for each product in the metafield
- Display on product page by editing the product template (product.liquid) with Liquid code:
Volume: {{ product.metafields.custom.volume }} ml
Status: Resolved - the original poster confirmed the solution worked.
You can add a Volume field to your product information section using Shopify Metafields. In your Shopify admin, go to Settings > Custom Data > Products, then add a new Metafield for volume. Set it as a number field and choose the right unit
Once you’ve created it, go to any product and enter the volume in the new metafield field. To display it on your product page, edit your product.liquid or product template and insert the metafield using Liquid code like this:
Volume: {{ product.metafields.custom.volume }} ml
1 Like
thanks so much!