Question

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

Était-ce utile?

La solution

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à magento.stackexchange
scroll top