Last active
December 18, 2015 20:48
-
-
Save ijy/5842854 to your computer and use it in GitHub Desktop.
ExpressionEngine: How to conditionally hide modifier options depending on inventory count in Expresso Store 1.6+. {option_stock_level} can be used inside the {modifier_options} tag pair to output the current stock level for that modifier option. It can also be used (as in this example) to conditionally hide modifier options if out of stock.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{modifier_options} | |
{if option_stock_level > 0} | |
<option value="{option_id}"> | |
{option_name} {if price_mod_val} ({price_mod}) {/if} | |
</option> | |
{/if} | |
{/modifier_options} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment