Ecommerce Shopify WordPress Discussion

Add Metafields Through API

I want to add metafields as specifications for the products in the store. I added metafields as below: namespace: "specs", key : [name of spec (ex. screen resolution)], value: [value of screen resolution] When I did this I was able to display the specifications in the product page as: {% for metafield in product.metafields.specs %} <p>{{ metafield.first }}: {{ metafield.last }}</p> {% endfor %} but I was not able to use them for filtering because they were not defined. And I was unable to define them through the Shopify Admin because they had specials chars (spaces). Then I tried to add the key as a handle, with dashed instead of spaces and no more brackets, and added one more field to the metafields as description - that was the name of the spec with spaces and so on - however I can't display the metafield.description value. Any idea how can I add the metafields already defined, or to display the description?
TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.