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 name="agreements-validator" xsi:type="array">
    <item name="component" xsi:type="string">Magento_CheckoutAgreements/js/view/agreement-validation</item>

enter image description here

How to do it ?

Please help me.



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 Dec 11 '18 at 8:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.