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

Changed sample script to include error message #5893

Merged
merged 2 commits into from
Oct 31, 2019

Conversation

gabriel-webjump-zz
Copy link
Contributor

Purpose of this pull request

This PR have to purpose to include an example of how to insert a error message upon validation failed in the checkout.

Fixed Issue

#5859

Affected DevDocs pages

https://devdocs.magento.com/guides/v2.3/howdoi/checkout/checkout_order.html

@magento-engcom-team
Copy link

@gabriel-webjump thank you for contributing. Please accept Community Contributors team invitation here to gain extended permissions for this repository.

@devops-devdocs
Copy link
Collaborator

An admin must run tests on this PR before it can be merged.

const isValid = false; //Put your validation logic here

if (!isValid) {
messageList.addErrorMessage({ message: $t('a possibile failure message ... ') });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

possible

@dobooth dobooth added 2.3.x Magento 2.3 related changes Technical Updates to the code or processes that alter the technical content of the doc labels Oct 31, 2019
@dobooth
Copy link
Contributor

dobooth commented Oct 31, 2019

running tests

@dobooth dobooth merged commit 080dd0a into magento:master Oct 31, 2019
@ghost
Copy link

ghost commented Oct 31, 2019

Hi @gabriel-webjump, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
2.3.x Magento 2.3 related changes Partner: Webjump partners-contribution PR created by Magento partner Technical Updates to the code or processes that alter the technical content of the doc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants