Magento 2 : Terms and Condition validation not working on checkout page
I moved terms and condition functionality in checkout order summary block.
But, There are no any validation working before click on place order button.
I also added agreement validation code in my custom module checkout_index_index.xml
checkout_index_index.xml :
<item name="agreements" xsi:type="array">
<item name="component" xsi:type="string">Magento_CheckoutAgreements/js/view/checkout-agreements</item>
<item name="sortOrder" xsi:type="string">100</item>
<item name="displayArea" xsi:type="string">before-place-order</item>
<item name="dataScope" xsi:type="string">checkoutAgreements</item>
<item name="provider" xsi:type="string">checkoutProvider</item>
</item>
<item name="agreements-validator" xsi:type="array">
<item name="component" xsi:type="string">Magento_CheckoutAgreements/js/view/agreement-validation</item>
</item>
How to do it ?
Please help me.
Thanks.
magento2 onepage-checkout validation terms-and-conditions
bumped to the homepage by Community♦ 5 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
|
show 1 more comment
I moved terms and condition functionality in checkout order summary block.
But, There are no any validation working before click on place order button.
I also added agreement validation code in my custom module checkout_index_index.xml
checkout_index_index.xml :
<item name="agreements" xsi:type="array">
<item name="component" xsi:type="string">Magento_CheckoutAgreements/js/view/checkout-agreements</item>
<item name="sortOrder" xsi:type="string">100</item>
<item name="displayArea" xsi:type="string">before-place-order</item>
<item name="dataScope" xsi:type="string">checkoutAgreements</item>
<item name="provider" xsi:type="string">checkoutProvider</item>
</item>
<item name="agreements-validator" xsi:type="array">
<item name="component" xsi:type="string">Magento_CheckoutAgreements/js/view/agreement-validation</item>
</item>
How to do it ?
Please help me.
Thanks.
magento2 onepage-checkout validation terms-and-conditions
bumped to the homepage by Community♦ 5 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
How'd you manage to place the order and checkout button in the sidebar? I've followed some Stack topics about that, but unfortunately no luck (my question: magento.stackexchange.com/questions/220895/…)
– Bram
Apr 12 '18 at 9:37
1
Yes. My code also same as like your code. But, not getting any solution. Do you have any idea about it?
– Emipro Technologies Pvt. Ltd.
Apr 12 '18 at 9:38
My code isn't even working unfortunately (maybe you have any ideas why is doesn't?) I did not come to the point where I could look into the validation function. Maybe this is something of use? magento.stackexchange.com/questions/110643/…
– Bram
Apr 12 '18 at 9:45
I've managed to replace the place order button and t&c checkbox. Now also searching for a solution to this
– Bram
Apr 13 '18 at 8:53
I've found out (I think) why this happens, but not how to fix it: magento.stackexchange.com/questions/222416/…
– Bram
Apr 19 '18 at 6:00
|
show 1 more comment
I moved terms and condition functionality in checkout order summary block.
But, There are no any validation working before click on place order button.
I also added agreement validation code in my custom module checkout_index_index.xml
checkout_index_index.xml :
<item name="agreements" xsi:type="array">
<item name="component" xsi:type="string">Magento_CheckoutAgreements/js/view/checkout-agreements</item>
<item name="sortOrder" xsi:type="string">100</item>
<item name="displayArea" xsi:type="string">before-place-order</item>
<item name="dataScope" xsi:type="string">checkoutAgreements</item>
<item name="provider" xsi:type="string">checkoutProvider</item>
</item>
<item name="agreements-validator" xsi:type="array">
<item name="component" xsi:type="string">Magento_CheckoutAgreements/js/view/agreement-validation</item>
</item>
How to do it ?
Please help me.
Thanks.
magento2 onepage-checkout validation terms-and-conditions
I moved terms and condition functionality in checkout order summary block.
But, There are no any validation working before click on place order button.
I also added agreement validation code in my custom module checkout_index_index.xml
checkout_index_index.xml :
<item name="agreements" xsi:type="array">
<item name="component" xsi:type="string">Magento_CheckoutAgreements/js/view/checkout-agreements</item>
<item name="sortOrder" xsi:type="string">100</item>
<item name="displayArea" xsi:type="string">before-place-order</item>
<item name="dataScope" xsi:type="string">checkoutAgreements</item>
<item name="provider" xsi:type="string">checkoutProvider</item>
</item>
<item name="agreements-validator" xsi:type="array">
<item name="component" xsi:type="string">Magento_CheckoutAgreements/js/view/agreement-validation</item>
</item>
How to do it ?
Please help me.
Thanks.
magento2 onepage-checkout validation terms-and-conditions
magento2 onepage-checkout validation terms-and-conditions
edited Apr 12 '18 at 7:31
Emipro Technologies Pvt. Ltd.
asked Apr 12 '18 at 6:30
Emipro Technologies Pvt. Ltd.Emipro Technologies Pvt. Ltd.
2,4841823
2,4841823
bumped to the homepage by Community♦ 5 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 5 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
How'd you manage to place the order and checkout button in the sidebar? I've followed some Stack topics about that, but unfortunately no luck (my question: magento.stackexchange.com/questions/220895/…)
– Bram
Apr 12 '18 at 9:37
1
Yes. My code also same as like your code. But, not getting any solution. Do you have any idea about it?
– Emipro Technologies Pvt. Ltd.
Apr 12 '18 at 9:38
My code isn't even working unfortunately (maybe you have any ideas why is doesn't?) I did not come to the point where I could look into the validation function. Maybe this is something of use? magento.stackexchange.com/questions/110643/…
– Bram
Apr 12 '18 at 9:45
I've managed to replace the place order button and t&c checkbox. Now also searching for a solution to this
– Bram
Apr 13 '18 at 8:53
I've found out (I think) why this happens, but not how to fix it: magento.stackexchange.com/questions/222416/…
– Bram
Apr 19 '18 at 6:00
|
show 1 more comment
How'd you manage to place the order and checkout button in the sidebar? I've followed some Stack topics about that, but unfortunately no luck (my question: magento.stackexchange.com/questions/220895/…)
– Bram
Apr 12 '18 at 9:37
1
Yes. My code also same as like your code. But, not getting any solution. Do you have any idea about it?
– Emipro Technologies Pvt. Ltd.
Apr 12 '18 at 9:38
My code isn't even working unfortunately (maybe you have any ideas why is doesn't?) I did not come to the point where I could look into the validation function. Maybe this is something of use? magento.stackexchange.com/questions/110643/…
– Bram
Apr 12 '18 at 9:45
I've managed to replace the place order button and t&c checkbox. Now also searching for a solution to this
– Bram
Apr 13 '18 at 8:53
I've found out (I think) why this happens, but not how to fix it: magento.stackexchange.com/questions/222416/…
– Bram
Apr 19 '18 at 6:00
How'd you manage to place the order and checkout button in the sidebar? I've followed some Stack topics about that, but unfortunately no luck (my question: magento.stackexchange.com/questions/220895/…)
– Bram
Apr 12 '18 at 9:37
How'd you manage to place the order and checkout button in the sidebar? I've followed some Stack topics about that, but unfortunately no luck (my question: magento.stackexchange.com/questions/220895/…)
– Bram
Apr 12 '18 at 9:37
1
1
Yes. My code also same as like your code. But, not getting any solution. Do you have any idea about it?
– Emipro Technologies Pvt. Ltd.
Apr 12 '18 at 9:38
Yes. My code also same as like your code. But, not getting any solution. Do you have any idea about it?
– Emipro Technologies Pvt. Ltd.
Apr 12 '18 at 9:38
My code isn't even working unfortunately (maybe you have any ideas why is doesn't?) I did not come to the point where I could look into the validation function. Maybe this is something of use? magento.stackexchange.com/questions/110643/…
– Bram
Apr 12 '18 at 9:45
My code isn't even working unfortunately (maybe you have any ideas why is doesn't?) I did not come to the point where I could look into the validation function. Maybe this is something of use? magento.stackexchange.com/questions/110643/…
– Bram
Apr 12 '18 at 9:45
I've managed to replace the place order button and t&c checkbox. Now also searching for a solution to this
– Bram
Apr 13 '18 at 8:53
I've managed to replace the place order button and t&c checkbox. Now also searching for a solution to this
– Bram
Apr 13 '18 at 8:53
I've found out (I think) why this happens, but not how to fix it: magento.stackexchange.com/questions/222416/…
– Bram
Apr 19 '18 at 6:00
I've found out (I think) why this happens, but not how to fix it: magento.stackexchange.com/questions/222416/…
– Bram
Apr 19 '18 at 6:00
|
show 1 more comment
1 Answer
1
active
oldest
votes
Check my following answer regarding the same issue you were facing:
Validation of the terms and conditions (custom module)
Hope it helps you.
hi @Bram, here you are trying with custom module, for me default is not working, can you please update me the fix
– jafar pinjar
Dec 11 '18 at 8:23
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f221979%2fmagento-2-terms-and-condition-validation-not-working-on-checkout-page%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Check my following answer regarding the same issue you were facing:
Validation of the terms and conditions (custom module)
Hope it helps you.
hi @Bram, here you are trying with custom module, for me default is not working, can you please update me the fix
– jafar pinjar
Dec 11 '18 at 8:23
add a comment |
Check my following answer regarding the same issue you were facing:
Validation of the terms and conditions (custom module)
Hope it helps you.
hi @Bram, here you are trying with custom module, for me default is not working, can you please update me the fix
– jafar pinjar
Dec 11 '18 at 8:23
add a comment |
Check my following answer regarding the same issue you were facing:
Validation of the terms and conditions (custom module)
Hope it helps you.
Check my following answer regarding the same issue you were facing:
Validation of the terms and conditions (custom module)
Hope it helps you.
answered May 28 '18 at 9:22
BramBram
15519
15519
hi @Bram, here you are trying with custom module, for me default is not working, can you please update me the fix
– jafar pinjar
Dec 11 '18 at 8:23
add a comment |
hi @Bram, here you are trying with custom module, for me default is not working, can you please update me the fix
– jafar pinjar
Dec 11 '18 at 8:23
hi @Bram, here you are trying with custom module, for me default is not working, can you please update me the fix
– jafar pinjar
Dec 11 '18 at 8:23
hi @Bram, here you are trying with custom module, for me default is not working, can you please update me the fix
– jafar pinjar
Dec 11 '18 at 8:23
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f221979%2fmagento-2-terms-and-condition-validation-not-working-on-checkout-page%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
How'd you manage to place the order and checkout button in the sidebar? I've followed some Stack topics about that, but unfortunately no luck (my question: magento.stackexchange.com/questions/220895/…)
– Bram
Apr 12 '18 at 9:37
1
Yes. My code also same as like your code. But, not getting any solution. Do you have any idea about it?
– Emipro Technologies Pvt. Ltd.
Apr 12 '18 at 9:38
My code isn't even working unfortunately (maybe you have any ideas why is doesn't?) I did not come to the point where I could look into the validation function. Maybe this is something of use? magento.stackexchange.com/questions/110643/…
– Bram
Apr 12 '18 at 9:45
I've managed to replace the place order button and t&c checkbox. Now also searching for a solution to this
– Bram
Apr 13 '18 at 8:53
I've found out (I think) why this happens, but not how to fix it: magento.stackexchange.com/questions/222416/…
– Bram
Apr 19 '18 at 6:00