I have a code which looks like:

{if total_stock > 0}
<option value="{option_id}">{option_name} {if price_mod_val} ({price_mod}) [{store_product_stock_level} in stock] {/if}</option>

which shows total stock (sum) of all options not stock per option.

Also how to display stock amount per product option? So far it shows sum of all product options not X stock amount per product option.

Any clue how to get this resolved?



1 Answer 1


The correct code for this is:

{modifier_options}{if option_stock_level > 0}{option_name} - {option_stock_level} in stock{if:else}Out of Stock{/if}{/modifier_options}

Hope that helps!

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.