Hello,
I'm having the exact same issue as this topic :
viewtopic.php?f=4&t=11219
The solution hasn't been posted in that thread. I posted a comment to ask if that was possible to get the solution, but I got no reply, so I thought I would make my own topic about it.
Here's the kind of code I'm using (like the posted reference topic):
This is within a select html element.
What is displayed in the select element is:
Squirrel
Skunk (coming soon)
Racoon (coming soon)
Squirrel (coming soon)
Skunk
Racoon (coming soon)
Squirrel (coming soon)
Skunk (coming soon)
Racoon
What I need, is that if "cat = squirrel", it shows "Squirrel", but that's it. Not all the other options. And if the "cat" checkbox is not equal to "squirrel", then show "Squirrel (coming soon)".
If I check Squirrel, but not Racoon and SKunk, it should look like this:
Squirrel
Skunk (coming soon)
Racoon (coming soon)
Any idea what's wrong here?
Thanks a lot
I'm having the exact same issue as this topic :
viewtopic.php?f=4&t=11219
The solution hasn't been posted in that thread. I posted a comment to ask if that was possible to get the solution, but I got no reply, so I thought I would make my own topic about it.
Here's the kind of code I'm using (like the posted reference topic):
- Code: Select all
<cms:each active_filters as='cat'>
<cms:if cat = 'squirrel' > <option value="squirrel">Squirrel</option>
<cms:else />
<option value="squirrel" disabled>Squirrel (coming soon)</option>
</cms:if>
<cms:if cat = 'skunk' > <option value="skunk">Skunk</option>
<cms:else />
<option value="skunk" disabled>Skunk (coming soon)</option>
</cms:if>
<cms:if cat = 'racoon' > <option value="racoon">Racoon</option>
<cms:else />
<option value="racoon" disabled>Racoon (coming soon)</option>
</cms:if>
</cms:each>
This is within a select html element.
What is displayed in the select element is:
Squirrel
Skunk (coming soon)
Racoon (coming soon)
Squirrel (coming soon)
Skunk
Racoon (coming soon)
Squirrel (coming soon)
Skunk (coming soon)
Racoon
What I need, is that if "cat = squirrel", it shows "Squirrel", but that's it. Not all the other options. And if the "cat" checkbox is not equal to "squirrel", then show "Squirrel (coming soon)".
If I check Squirrel, but not Racoon and SKunk, it should look like this:
Squirrel
Skunk (coming soon)
Racoon (coming soon)
Any idea what's wrong here?
Thanks a lot