I need to show Terms and condition text before place order button of each payment method.
Which file i need to override to show content from static block. As i checked terms and conditions text comes from html and not from phtml file.
So is it possibile to display content from the cms static block?
Please anyone help on this. Thanks
- 
 you try this module github.com/trubnikovr/magento2_CheckoutAgreement, works on M2.3Рустам Трубников– Рустам Трубников2019年11月28日 08:53:43 +00:00Commented Nov 28, 2019 at 8:53
- 
 check my answer here: magento.stackexchange.com/questions/224725/…Jonas Chen– Jonas Chen2021年07月22日 04:52:50 +00:00Commented Jul 22, 2021 at 4:52
1 Answer 1
I assume that you want to show a formatted content in the terms and conditions section in the checkout page.
By default, it is not possible to call the content in this block from a CMS block.
I have a workaround for it.
- Create a temporary static block and write your HTML content in it. Check the preview of HTML. Once finalized, go to step 2.
- Go to Stores>> Settings (Terms and Conditions) and edit existing or create a new condition with the following settings: - -- Status: Enabled - -- Show Content as: HTML - Now, copy the HTML content from the static block which you created in step #1 and paste its Content in the content section of this condition. Save the condition. 
- Now go to Stores>> Configuration>> Sales (Checkout) section and under Checkout Options, change the value of Enable Terms and Conditions to Yes. Save Config. 
That's all.
- 
 hi @Mohit, this i will try but in future to change content again it can't be changed from static block instead we need to change from terms and conditions only. is there any way to load static block content in that area like we call in other phtml files.Jafar Pinjar– Jafar Pinjar2018年12月06日 10:41:24 +00:00Commented Dec 6, 2018 at 10:41
- 
 Programmatically it could be possible, but I haven't tried it yet.Mohit Kumar Arora– Mohit Kumar Arora2018年12月06日 10:42:33 +00:00Commented Dec 6, 2018 at 10:42
- 
 If it is loading from phtml file, then we can call it, but it loads from htmlJafar Pinjar– Jafar Pinjar2018年12月06日 10:51:46 +00:00Commented Dec 6, 2018 at 10:51
- 
 Yes, you are right. The checkout page uses knockout JS to render most of the content.Mohit Kumar Arora– Mohit Kumar Arora2018年12月06日 10:54:07 +00:00Commented Dec 6, 2018 at 10:54
- 
 hi mohit, here there is a checkbox this is a mandatory, can we remove it?Jafar Pinjar– Jafar Pinjar2018年12月06日 11:29:17 +00:00Commented Dec 6, 2018 at 11:29
Explore related questions
See similar questions with these tags.