How to enable app block to show dependent on metafield order

How to enable app block to show dependent on metafield order

AlexBoy
Shopify Partner
27 0 10

hi team,

 

We have created 3 blocks in the theme app extension:
1. form1-app-block.liquid => order.metafield.custom.field1(value = 'template1')
1. form2-app-block.liquid => order.metafield.custom.field1(value = 'template2')
3. form3-app-block.liquid => order.metafield.custom.field1(value = 'template3')

 

These forms will be displayed depending on the value of the order metafield.
If order.metafield.custom.field1 = 'template1' it will show form1-app-block and the other 2 forms will be hidden

 

Is there any solution for this or suggest another way

Replies 0 (0)