Have your say in Community Polls: What was/is your greatest motivation to start your own business?
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.

Alternate liquid templates replacement for the new Themes?

Alternate liquid templates replacement for the new Themes?

ihnat-s
Shopify Partner
2 0 2

Many apps and custom theme features heavily rely on alternate templates like product.pre-order.liquid or collection.json.liquid. Which can be accessed with /products/product-name?view=pre-order or /collections/collection-name?view=json direct URL.

A good example would be an autocomplete feature that uses alternate search template, which disables the global layout, but returns JSON formatted data instead.

From what I can see for now, this feature might be unavailable for the new structured themes:

When master_page_id is not blank, then pages render with the master page instead of the theme template, even if template_suffix is not blank. (https://help.shopify.com/en/themes/development/section-themes/master-pages)

Is there any replacement that would allow to conditionally switch the view for the product/collection/search pages?

Thanks.

Reply 1 (1)

blimon
Visitor
1 0 0

same problem i am also searching solution to solve all question. Learn more about all the futeature of apps