Hi @Anonymous !
Could you provide more details?
What are these blocks? Are there sections, snippets, or simple HTML code?
Potentially you can put your head block into a variable with {% caption %} and use this variable in your body block. In some cases it is work but more details are needed.
Extention app blocks seem like Shopify theme settings blocks, so we can’t take a body block and put them into the head block.
But you can save your data in the page context.
As I understand the blocks can’t use Shopify page context and we can’t use a liquid variables outside the blocks.
But we can use js window object in both of them.
One way that I can see is a save settings ids in js variable.
Just for example, head block:
....
{% schema %}
...
{% endschema %}
And use this variable inside the body block.
This way is hack-like, pretty complicated, and unstable, but if you always know that bout of blocks will use only together - it can help.
Also, we can use js browser API (localstorage) to communicate between two different sections, but this way also has restrictions.
If you want to pass data from one block to another, create a common js file in your assets, then add “javascript” to schema, where you will declare the common-file
for example:
in assets: common-file.js
then in each block:
–Block A–