Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabled product button still works #815

Open
artemas opened this issue Aug 3, 2022 · 0 comments
Open

Disabled product button still works #815

artemas opened this issue Aug 3, 2022 · 0 comments

Comments

@artemas
Copy link

artemas commented Aug 3, 2022

Conditions:

  1. The product is out of stock
  2. iframe: false
  3. Custom template with button which has child elements (eg. span):
templates: {
                button: '<div class="{{data.classes.product.buttonWrapper}}" data-element="product.buttonWrapper">
<button {{#data.buttonDisabled}}disabled{{/data.buttonDisabled}} class="{{data.classes.product.button}} {{data.buttonClass}}" data-element="product.button">
   <span>{{data.buttonText}}</span>
</button>
</div>'
              }

It is possible to add to cart by clicking on the text in the span.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant