Dropdown Quantity Stock

Hello,
I need help to make a dropdown that displays the exact maximum quantity.
For example, my stock is 6 products, so this dropdown will only display options from 1 to 6.
I’ve tried the range function with no result.

Thanks for your help!

This topic was automatically closed after 70 days. New replies are no longer allowed.