3

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>

enter image description here

How to do it ?

Please help me.

Thanks.

7
  • 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/…)
    – Condor
    Commented Apr 12, 2018 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? Commented Apr 12, 2018 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/…
    – Condor
    Commented Apr 12, 2018 at 9:45
  • I've managed to replace the place order button and t&c checkbox. Now also searching for a solution to this
    – Condor
    Commented Apr 13, 2018 at 8:53
  • I've found out (I think) why this happens, but not how to fix it: magento.stackexchange.com/questions/222416/…
    – Condor
    Commented Apr 19, 2018 at 6:00

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.