Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Products: "Select options" button adds the product to cart #8147

Closed
Tracked by #42616
kmanijak opened this issue Jan 10, 2023 · 0 comments · Fixed by #8173
Closed
Tracked by #42616

Products: "Select options" button adds the product to cart #8147

kmanijak opened this issue Jan 10, 2023 · 0 comments · Fixed by #8173
Assignees
Labels
block-type: product-query Issues related to/affecting all product-query variations. priority: high The issue/PR is high priority—it affects lots of customers substantially, but not critically. type: bug The issue/PR concerns a confirmed bug.

Comments

@kmanijak
Copy link
Contributor

Describe the bug

Variable products display "Select options" button rather than "Add to Cart". When clicked it should redirect to the product page. Currently in Products (Beta) block, clicking "Select Options" adds product (in some variant) to the cart.

To reproduce

Prerequisites
0. Make sure to have at least one variable product

Steps to reproduce the behavior:

  1. Go and edit Product Catalog template
  2. Add "Products (Beta)" block
  3. Save and view in the frontend
  4. Find the variable product - it should have "Select Options" button instead of "Add to Cart"
  5. Click the "Select Options" button

Expected behavior

User is redirected to product page to choose the product variant

Video

Cart is empty, clicking "Add to Cart" to demonstrate the behavior, then "Select Options" - both products are added to cart.

selectoptions.mov

Environment

WordPress (please complete the following information):

  • WordPress version: 6.1.1
  • Gutenberg version (if installed): [e.g. 12.0.0]
  • WooCommerce version: 7.2.0
  • WooCommerce Blocks version: 7.4.0-dev
@kmanijak kmanijak added type: bug The issue/PR concerns a confirmed bug. block-type: product-query Issues related to/affecting all product-query variations. labels Jan 10, 2023
@sunyatasattva sunyatasattva added the priority: high The issue/PR is high priority—it affects lots of customers substantially, but not critically. label Jan 10, 2023
@sunyatasattva sunyatasattva self-assigned this Jan 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
block-type: product-query Issues related to/affecting all product-query variations. priority: high The issue/PR is high priority—it affects lots of customers substantially, but not critically. type: bug The issue/PR concerns a confirmed bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants