BigCommerce - Stencil - client configurable text value pair -


working on stencil theme supports third-party javascript widget. no problem passing product data script. problem need pass client's license key , don't want hardcode in template. schema.json not support text field. idea how store owner can set text configuration accessible via yaml?

any reason setting value in config.json file , calling template wouldn't work?

you set value in config file so.

"settings": {    "my_license_key": "abcdefg",    .... } 

then call value in template.

<p>{{theme_settings.my_license_key}}</p> 

this way wouldn't need include yaml attribute on each page need value either.


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -