Hey all,
A merchant has my app installed, and they’ve added my app block to their default product page template. It’s visible on the product page within the Theme Customizer.
However, when the product page is viewed on the website, the app block isn’t there. The container is completely missing from the markup.
When I look at product.json, the app block is definitely there - it’s one of 4 blocks, the other 3 being standard blocks from the theme (which is Dawn).
I’ve done a whole bunch of troubleshooting in main-product.liquid, to output the blocks to screen. For example, looping the blocks and outputting name or id. Outputting a count of section.blocks gives 3 rather than 4.
I’m putting this code at the very top of main-product.liquid, well before the switch function that outputs blocks differently based on their type
. The switch has an allowance for when type
is @app
- however this doesn’t seem too relevant as the block seems to be missing well before this code is reached.
The theme is the current/published one on the store, and there’s only one product page template (default product). All products are set to use this template.
The merchant says it’s been working for some time on the live site but disappeared as of a few days ago. This doesn’t align with any new releases of the app.
Are there any other reasons Shopify would be excluding the app block from the list of section.blocks when rendering the product page?
No other merchants have reported a similar issue. There are hundreds of merchants with the app block being used on their product pages.
Any help would be much appreciated!
Thanks,
Gunner