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

Orders placed using the shortcode checkout include "No" values from Additional Checkout Fields checkboxes #47265

Closed
opr opened this issue May 8, 2024 · 0 comments · Fixed by #47333
Labels
block: checkout Issues related to the checkout block. focus: checkout Issues related to checkout page. priority: normal The issue/PR is of normal priority—not many people are affected or there’s a workaround, etc. team: Rubik Store API checkout endpoints, Mini-Cart, Cart and Checkout related issues type: bug The issue is a confirmed bug.

Comments

@opr
Copy link
Contributor

opr commented May 8, 2024

When placing an order using the shortcode checkout, the checkbox fields registered as part of the Additional Fields API are shown on the order confirmation despite not being shown in the form.

image

This is because we have special logic to show the a value for unchecked checkboxes (rather than just keeping them hidden like we do for other empty fields).

To solve this we could check the $order->get_created_via() value and only show them if it were created via store api.

@opr opr added type: bug The issue is a confirmed bug. priority: normal The issue/PR is of normal priority—not many people are affected or there’s a workaround, etc. focus: checkout Issues related to checkout page. team: Rubik Store API checkout endpoints, Mini-Cart, Cart and Checkout related issues block: checkout Issues related to the checkout block. labels May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
block: checkout Issues related to the checkout block. focus: checkout Issues related to checkout page. priority: normal The issue/PR is of normal priority—not many people are affected or there’s a workaround, etc. team: Rubik Store API checkout endpoints, Mini-Cart, Cart and Checkout related issues type: bug The issue is a confirmed bug.
Projects
None yet
1 participant