How to apply a "doesn't contain" modifier and how to apply it to a 2-level deep multidim array #6433
Unanswered
mangrovestudios
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there, this is a two-part question regarding display in antlers. I'm using the Simple Commerce add-on. I have a product with variants like so:
I would like to condition content on the front-end based upon the existence of
0
in the product's variants' optionsoriginal_price
fields. For that, I would imagine something like this:if product_variants:options:original_price | contains:0
How could I achieve that? Ie. apply the
contains
modifier to an array of pluckedoriginal_prices
.Additionally, is there a way to effect a doesn't contain modifier? Something akin to
!contains
?Beta Was this translation helpful? Give feedback.
All reactions