This may seem like an easy question, but i have tried a number of things, none which work.

I want to use a custom modifier in Store to show a color, and this code needs to be in a template, but not every item needs the color input, only the entry which needs it.

How would I wrap this in a conditional {if}{/if} so that it only appears when needed?

Many thanks in advance.


Green Yellow

1 Answer 1


A conditional based on an entry's ID might look like this:

    {if entry_id == "XXX"}
            <select name="color">
                <option value="Green">Green</option>
                <option value="Yellow">Yellow</option>

Replace XXX with the entry_id.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.