eCom API metafields

HiddeHidde Member, Partner Posts: 15 partner
Are Product Metafields (https://developers.lightspeedhq.com/ecom/endpoints/productmetafield/) also available in the template editor? 

For example: {{ product.metafields.my_custom_key.value }}
Hidde Schuurman | Lightspeed App Developer bij InStijl Media | Gold Partner Lightspeed

Best Answer

Answers

  • TimBloembergenTimBloembergen Moderator, Lightspeed Staff Posts: 38 moderator
    Hi Hidde,

    They are! You can find your created metafields on the storefront as well by enabling the developer toolbar. More can be found on https://ecom-support.lightspeedhq.com/hc/en-us/articles/115000272333-2-a-Development-tools
    Tim Bloembergen
    API Integrations Specialist
    Lightspeed HQ
  • HiddeHidde Member, Partner Posts: 15 partner
    Hi @TimBloembergen

    Thank you! I tried creating a metafield for a product and I was able to see it in the Developer toolbar.
    I was also successfull in creating metafields for textpages, blogs and articles.

    I want to create a simple metafield which is accessable on al pages, by using the shop metafield.

    But when I create metafields for shops, categories, tags etc, I'm not able to see metafields these in the toolbar, while they are created successfully.

    Am I doing something wrong?
    Hidde Schuurman | Lightspeed App Developer bij InStijl Media | Gold Partner Lightspeed
  • HiddeHidde Member, Partner Posts: 15 partner
    Thank you!
    Hidde Schuurman | Lightspeed App Developer bij InStijl Media | Gold Partner Lightspeed
Sign In or Register to comment.