Skip to content

[Suggestion] Differentiate single product vs product with variants #29

Closed

Description

@sebszocinski

I know Shopify handles single products as products with one variant, but there is no way to differentiate an imported product that is single vs one that has variants (ie even just one)

In our case we are displaying information from the variant in our content / description such as it's title and at the moment the only way to tell if a product is single is by the variant title being set to "Default Title" which I don't know is a great idea either? this should probably just be the product title again? or null?

Anyway my suggestion is to add something like has_variants: false to the product yaml.

Thoughts?

Activity

  1. jackabox commented on Apr 5, 2021

    @jackabox
    Collaborator

    If the variant has one only option, this would be a single product. Shopify sets this to Default Title and is handled on their side via the import.

    A variant is still required to get all the price and stock information, so every product has variants.

  2. locked and limited conversation to collaborators on Apr 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions