• I have the following shortcodes that output the following on the frontend:
    https://snipboard.io/tKCmoV.jpg


    A xx til discount and xx amount till free shipping notice

    generated by the following shortcodes in these functions:
    https://snipboard.io/brHRmY.jpg


    I want to show these 2 notices in the block based checkout page where i put the shortcodes in the top
    https://snipboard.io/W74QpD.jpg

    In the frontend it shows without any problem: but when i want to go back to the backend to edit the checkout page i get an error and i cannot acces the page for editing anymore. Furthermore the layout of the checkout page is messed up (not showing the payment options anymore)

    Probably i have to use react (with which i am not familiar) or is there a way to make these shortcodes work perfectly so i don’t get an error anymore?

Viewing 1 replies (of 1 total)
  • Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    Thank you for the detailed explanation and screenshots that helps clarify what’s happening.

    The new Cart and Checkout blocks are built with React and don’t fully support PHP-based shortcodes or the classic checkout hooks the way the shortcode-based checkout does. That’s why your custom shortcodes render on the frontend but break the editor and layout when used inside the block-based Checkout page.

    I would like to clarify that in this forum we only provide support for WooCommerce core features. Issues related to customizations fall outside of the support scope.

    If you need more in-depth support or want to consider professional assistance for customization, I can recommend WooExperts and Codeable.io as options for getting professional help.

    Alternatively, you can also ask your development questions in the  WooCommerce Community Slack as custom code falls outside our usual scope of support.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.