Stories As A Block On Product Page v3.4

The stories snippet designed to handle cases where metafields may not be filled in. The unless conditions check if the metafields are empty (or blank), and if they are, the corresponding content is not included in the final rendered output.

The unless block ensures that only filled metafields are processed and displayed. If a metafield is empty, it will not be included in the final output.

Example

If you have metafields for stories 1, 3, and 5 filled in but not for stories 2, 4, and 6:

  • Stories 1, 3, and 5 will be processed and displayed.

  • Stories 2, 4, and 6 will be skipped because their metafields are blank.

Last updated