Hello,
In my blueprints I have the below structure field. The field “inventory_quantity” will have a number input between 0-10. I would like to check if the total of the field “inventory_quantity” for all items in the structure equals 0. The end goal is to create an If Statement so that when the total is 0, I can add a sold out banner.
shopifyVariants:
label: Variants
type: structure
fields:
title:
label: Title
type: text
price:
label: Price
type: text
compare_at_price:
label: Compare at price
type: text
inventory_quantity:
label: Inventory
type: text
sku:
label: SKU
type: text
I am just getting very stuck at the moment…
Any help is greatly appreciated!