0

I have a code which looks like:

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

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?

Thanks

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!

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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