Skip to content

FR: Loosen up the templating of product_variants tag #124

Closed

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.

Activity

  1. jackabox commented on Jul 20, 2022

    @jackabox
    Collaborator

    @ncla Sure, it's meant to be quite tight at the moment but I could see the use case. Happy for a PR to tackle this.

  2. locked and limited conversation to collaborators on Jul 20, 2022
  3. converted this issue into a discussion #126 on Jul 20, 2022
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