How can i get product variant id when it is out of stock?

Highlighted

Hi 

 

How can i get product variant id when it is out of stock?

 

We can get variant id when it is stock but when its out of stock we are getting NULL in variant id so is there any way to get that id when Variant of specific product is out of stock.

 

Looking forward to hearing back asap.

0 Likes