Title: output shortcode from functions on block based checkout
Last modified: April 1, 2026

---

# output shortcode from functions on block based checkout

 *  [harrydevries](https://wordpress.org/support/users/harrydevries/)
 * (@harrydevries)
 * [5 days, 22 hours ago](https://wordpress.org/support/topic/output-shortcode-from-functions-on-block-based-checkout/)
 * I have the following shortcodes that output the following on the frontend:
   [https://snipboard.io/tKCmoV.jpg](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](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](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)](https://wordpress.org/support/users/shahzeenfarooq/)
 * (@shahzeenfarooq)
 * [5 days, 20 hours ago](https://wordpress.org/support/topic/output-shortcode-from-functions-on-block-based-checkout/#post-18869364)
 * 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](https://partners.woocommerce.com/English/marketplace/)
   and [Codeable.io](https://woocommerce.com/codeable/) as options for getting professional
   help.
 *  Alternatively, you can also ask your development questions in the [ WooCommerce Community Slack](https://woocommerce.com/community-slack/)
   as custom code falls outside our usual [scope of support](https://woocommerce.com/support-policy/#customization).

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Foutput-shortcode-from-functions-on-block-based-checkout%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [shahzeen(woo-hc)](https://wordpress.org/support/users/shahzeenfarooq/)
 * Last activity: [5 days, 20 hours ago](https://wordpress.org/support/topic/output-shortcode-from-functions-on-block-based-checkout/#post-18869364)
 * Status: not resolved