Orders placed using the shortcode checkout include "No" values from Additional Checkout Fields checkboxes #47265
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.
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.
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.The text was updated successfully, but these errors were encountered: