1

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

asked Dec 6, 2018 at 9:37
2

1 Answer 1

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.

  1. Create a temporary static block and write your HTML content in it. Check the preview of HTML. Once finalized, go to step 2.
  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.

  3. 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.

answered Dec 6, 2018 at 10:34
18
  • 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. Commented Dec 6, 2018 at 10:41
  • Programmatically it could be possible, but I haven't tried it yet. Commented Dec 6, 2018 at 10:42
  • If it is loading from phtml file, then we can call it, but it loads from html Commented Dec 6, 2018 at 10:51
  • Yes, you are right. The checkout page uses knockout JS to render most of the content. Commented Dec 6, 2018 at 10:54
  • hi mohit, here there is a checkbox this is a mandatory, can we remove it? Commented Dec 6, 2018 at 11:29

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.