Hello, I have created a custom Shopify Section with Blocks. I use these blocks to store data for all my shipping dates (I only have 2 per month). I store Day, Month, and Year in each block.
I would like to use the data in my custom blocks in other sections and other liquid code.
{%for block in section.blocks %}
// Other Code
{%endfor%}
I have seen the code above for getting the data from the blocks in the current section. My question is - is there a way to get block object data while in other sections or other liquid code?
I was hoping I could replace ‘section’ with the name of my custom section ‘custom-section’ and do something like this -
{%for block in custom-section.blocks %}
// Other Code
{%endfor%}
This does not seem to work
Thank you for your time.