Skip to content

[Bug]: Product with only one attribute does not work #263

@ethinkers

Description

@ethinkers

Expected Behavior

Return product is check stock using canAddToCart variable in front end.

Actual Behavior

hi, i installed sample data it works perfectly!
the products are registered with 2 attributes color, and size

when I remove one attribute my api-client gets the error...
breaking the canAddToCart variable for the purchase button in the frontend
does not return the product

look this request in xhr

image
image
image

Possible Solution

No response

Steps to reproduce

No response

What version of Magento 2 integration are you using?

2.4

What version of Node.js are you using?

15.14

What browser (and version) are you using?

Chome

What operating system (and version) are you using?

Mint

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

┆Attachments: Antonia Racer Tank _ Products _ Inventory _ Catalog _ Magento Admin 2022-02-02 12-02-59.png

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions