Skip to content

Is there a way to establish if all Price Modifier options are out out of stock _before_ looping through them? #9

@pyrobob83

Description

@pyrobob83

Where utilizing the Price Modifiers, how do we establish if the all variants of the product are out of stock before looping through the item_options? We have a scenario where this happened recently and the users were able to still add the product to the cart but without one of the size options selected (ie the was just blank) and in trying to figure out how to check for that before even rendering the add_to_cart_form, realized I don't think it's even possible - unless maybe there's some undocumented parameters/variables/conditionals??

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