Menu
Feedback
Start here

Known issues

Known issues
Validation of required attachments in the store cart
Shopping
ID:
Backlog
Published on10/10/2018
Last updated on12/22/2022
1 min read

Summary

The validation of mandatory attachments is done only when the order is created, in the last "end purchase" button. This field requirement is not expressed in the cart (/checkout/#/cart), where fields are displayed.

This is visible only in attachments that do not have predefined values, so they are manually filled fields. In the case of attachments with predefined values, a selection list is displayed, already with some of them preselected.

Ideally, the fields requirement should be expressed together with it so that the customer gives attention to this before attempting to close the order, avoiding the error message.

Simulation

  1. Create an SKU with a mandatory attachment;
  2. Add this SKU to the cart;
  3. Follow the steps of the purchase without filling in the attachment fields;
  4. Watch for the error message when trying to complete the order.

Workaround

You can do a custom validation of these fields using Javascript in the cart page - in case the required field is not filled, it's enough to block the continue button.

Contributors
1
Photo of the contributor
+ 1 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Contributors
1
Photo of the contributor
+ 1 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX Community
Join our community
Request VTEX support
For personalized assistance, contact our experts
Open a support ticket
GitHubDeveloper PortalCommunityFeedback