• Resolved SunCart

    (@sunarc)


    Hello Support

    I want to display some html code in checkout page, I am using hook ‘woocommerce_review_order_before_payment’ but its not wotking with block editor, whereas with classic editor it is working.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @sunarc,

    Thank you for reaching out.

    ?I understand that you’re having difficulty with displaying HTML code in the checkout page using the ‘woocommerce_review_order_before_payment’ hook with the block editor.

    This could be because the block editor handles content differently than the classic editor. If you’re adding the HTML directly into the editor, it may not be recognized as code.

    In the block editor, try adding your HTML code in a ‘Custom HTML’ block. This block is specifically designed to handle HTML content.

    Please try this and let us know how it goes.

    Thread Starter SunCart

    (@sunarc)

    Thanks for revert back.

    I have some dynamic code to show html text. that is not possible to show via html block in editor.

    html can show only by ‘woocommerce_review_order_before_payment’ hook which code is added in functions.php file.

    I would appreciate it if you could guide me in resolving this issue. If there are any specific changes or alternative approaches needed for the latest WooCommerce version of Block Editor, please advise.

    Thanks

    Hi @sunarc,

    I have some dynamic code to show html text. that is not possible to show via html block in editor.

    Thank you for clarifying on this further.

    For development and custom coding questions, it’s best to ask for insight related to those on either the?WooCommerce Advanced Facebook group?or the?WooCommerce Community Slack.

    Many of our developers hang out there and will be able to offer insights into your question.
    I wish I could help more, but hopefully, this gets you going in the right direction to get some further insight/information.

    Plugin Support Feten L. a11n

    (@fetenlakhal)

    Hi there, it’s been a little while since we last heard from you. I’ll mark this as resolved for now, but please don’t hesitate to get back in touch when you’re ready.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.