Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Re: Theme App Extension - Documentation out of Whack

Theme App Extension - Documentation out of Whack

HunkyBill
Shopify Partner
4853 60 570

Take a simple block in a theme app extension:

 

   

<script src="{{ 'foo.js' | asset_url }}" defer></script>
{{ 'foo.css' | asset_url | stylesheet_tag }}
{% schema %}
{
"name": "Get Foo",
"target": "section",
"enabled_on": {
"templates": ["product", "metaobject"]
}
}
{% endschema %}

According to the docs as of right now, November 23, 2023, I can target a section, and my templates for this are product and metaobject, both valid.

So in my VSCode editor where is conjure up this stuff, it is telling that target is not allowed in the schema, and metaobject is not allowed in the templates. Why is that? What is out of date in VSCode to be prompting that?

Also, when this code is in fact added to a block in a Metaobject theme template, it indeed fails to render at all. A major bug as far as I am concerned. Has not worked correctly in many months, but does work on product templates.

 

 

 

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
Replies 7 (7)

SBD_
Shopify Staff
1831 273 423

Thanks for flagging this. Forwarding to the App Extension folks.

Scott | Developer Advocate @ Shopify 

Nick_24
Shopify Partner
13 0 0

Hello, I want to know how to make the Shopify theme app extension. Can you tell more about it.

 

SBD_
Shopify Staff
1831 273 423

Hey @Nick_24 - there's a tutorial here.

Scott | Developer Advocate @ Shopify 

Nick_24
Shopify Partner
13 0 0

i follow this but the cli not setup properly. Can you @SBD_ any video references. It helps me lot

 

SBD_
Shopify Staff
1831 273 423

Jan put together a great video here: https://www.youtube.com/watch?v=18rGm1ndMaI

Scott | Developer Advocate @ Shopify 

Nick_24
Shopify Partner
13 0 0

Can i do development link use the shopify partners or Shopify store

Nick_24
Shopify Partner
13 0 0

Can You dm please I some personal query regards shopify