Dawn Theme - Show inventory on product page for different attribute

Dear all,

Are there any solution to display the actual inventory on different attribute on the product page.

thanks

Francis

Hello Francis,

You mean show inventory on variant change.
Yes it’s possible, you can write a callback function or simply pass inventory with each variant with help of data attribute and after that use jQuery to show/hide on variant change.

Thanks

Hi Guleria,

I’m also looking into displaying and using the variant inventory quantity (attribute) to limit purchases. Do you have an example you could share?

Thank you