Announcement

Collapse
No announcement yet.

Get the ID of Inventory Variants?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Get the ID of Inventory Variants?

    I'm wondering if there is an easy way to look up the ID of an inventory variant from within the attribute options loop. I have it working for the moment using a custom field, but I'd rather not have to make my client jump through the hoops to populate the field every time there is a new product added.

    #2
    The variant Id is a combination of attributes. For example Size Small, Color Blue will map to a specific inventory variant. So you couldn't just output the variant id in the attributes loop. You can look up a inventory variant using the attributes selected.

    What are you ultimately trying to do?
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #3
      I don't believe that this store will have products with more than one attribute. I'm using the variant product id to display the variant's volume pricing table on products where the volume pricing differs for different attribute options.

      Comment

      Working...
      X