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.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Does all the templates support sections?

Does all the templates support sections?

Milind
Shopify Partner
9 1 4

We have started using OS2.0 features of sections on all pages it is working great.

But when we tried to add sections in the customer's template like customers/account, customers/login, customers/register
.json is not working in that templates.

Did I miss something in the document or steps?

Any help would be great 🙂 

Replies 2 (2)

PaulNewton
Shopify Partner
8031 687 1646

Similar https://community.shopify.com/c/online-store-2-0/why-templates-which-under-customers-of-dawn-doesn-t... 

Great question! The JSON templates do support customer page types, so you expect to see themes using this template method on future versions of Shopify themes. https://community.shopify.com/c/online-store-2-0/why-templates-which-under-customers-of-dawn-doesn-t... 

And yes according to the docs

Although JSON templates differ from Liquid templates in their contents, they are still template files that support the following Shopify theme features:

  • All template types, except for gift_card and robots.txt.
  • Alternate templates.

https://shopify.dev/themes/architecture/templates/json-templates 

 


@Milind wrote:

 when we tried to add sections in the customer's template like customers/account, customers/login, customers/register
.json is not working in that templates.

Did I miss something in the document or steps?



What theme is this?

Are you making an actual JSON template and have deleted the original .liquid version?

Are you following the migration guide?

Or are you trying to add sections to a standard .liquid template?

What code is causing trouble?

etc etc

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


Milind
Shopify Partner
9 1 4

Let try again with a refreshed mind and given solutions.

I will get back to you on this.