Skip to content

FR: Loosen up the templating of product_variants tag #124

@ncla

Description

@ncla

Right now if you want to change the markup of the <select> coming from product_variants tag then you must create basically another tag and duplicate this addons tag code. The methods responsible for creating the markup are private, and I cannot simply extend the ProductVariants tag class and just override parseOptions, where I could add the HTML attribute I want. Ideally, in my opinion, this templating should be moved to antlers or blade templates.

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