In the end I moved the majority of the section code into a snippet, created two sections each with the logic of including said snippet and then added both sections to the template. Works basically the same.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Removing a section in an if block while migrating to 2.0 | 0 | 29 | October 30, 2021 | |
| Product page sections in custom 2.0 theme | 1 | 80 | October 4, 2022 | |
| How would you accomplish this in Online Store 2.0? | 2 | 37 | September 23, 2021 | |
| Reusable Sections file in different templates file with different values | 2 | 32 | June 17, 2022 | |
| Rendering Sections with conditions -- Empire Theme | 1 | 111 | June 16, 2024 |