Menu
Feedback
Start here
Tutorials
Developer portal

Known Issues
Support Rules
Troubleshooting

Frequently Asked Questions
Announcements
Known issues
Validation of required attachments in the store cart
Validation of required attachments in the store cart
ID:
Backlog
Published on 10/10/2018
Last update on 12/22/2022

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
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX community.
Join our community
Request support from VTEX
For personalized assistance, contact our experts.
Open a support ticket
GithubDeveloper portalCommunityFeedback