What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

How to identify Physical or Digital product Type

How to identify Physical or Digital product Type

taruns
Visitor
3 0 0

Hi Team,

  Just wanted to check in terms of identifying a product type being Digital or Physical. Is their a attribute available in Order API that provides us this clarity. Basically provides Product type information to distinguish between Physical or Digital?
I found the attribute requires_shipping is usually set to False if Digital product and True if it is a physical product. Can we rely on this attribute for identifying if a product is digital or Physical?

Replies 2 (2)

m8th
Shopify Partner
13 5 11

If you communicate it internally like this and fill the data correctly then it is definitely a solution.

You can also tag the variants via metafield or tag whether something is digital or not.

RTFM!

windmillcode
Shopify Partner
18 0 2

This is a late answer but I found it  

          mutation {
            productVariantUpdate(
              input: {
                id: "{id_input}",
                inventoryPolicy: CONTINUE,
                requiresShipping: false
              }
            ) {
              userErrors {
                field
                message
              }
            }
          }   come 2024-07 API  you need to use inventoryItemUpdate and you can get the inventoryId from the productVariant in the productQuery!