Title: echoing [product_page] from php breaks functionality
Last modified: September 4, 2019

---

# echoing [product_page] from php breaks functionality

 *  Resolved [twigglypuff](https://wordpress.org/support/users/twigglypuff/)
 * (@twigglypuff)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/echoing-product_page-from-php-breaks-functionality/)
 * Hello,
    I am trying to echo the [product_page] shortcode in php and append the
   data into my html DOM element. The data comes through fine but the CSS and functionality(
   i assume JS) of the shortcode breaks. Is there anyway I can echo that shortcode
   and retain proper functionality?
 * What I am trying to do is dynamically return a product bundle based on a user
   selection.
 * If you go to the page in the topic, select U Epoxy It from the first dropdown,
   and select One Day Color from the second drop down, and go to the Create my Kit
   Tab….
 * I would appreciate any help with this. Thank you!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fechoing-product_page-from-php-breaks-functionality%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [twigglypuff](https://wordpress.org/support/users/twigglypuff/)
 * (@twigglypuff)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/echoing-product_page-from-php-breaks-functionality/#post-11900316)
 * I realize now that do_shortcode() doesnt actually render the js files or css 
   files associated with the product bundle. It simply returns the HTML template.
 * Is there any way for me to accomplish what I want to do?
 * I want to programmatically return a product bundle based on a user selection.
 * How can I accomplish this?
 * I cant use CSS tricks because when I use more than 5 product bundles the page
   crashes.
 *  Plugin Support [Riaan K.](https://wordpress.org/support/users/riaanknoetze/)
 * (@riaanknoetze)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/echoing-product_page-from-php-breaks-functionality/#post-11901683)
 * Hi there,
 * This is a fairly complex development topic. I’m going to leave it open for a 
   bit to see if anyone is able to chime in to help you out.
 * I can also recommend the following places for more development-oriented questions:
    1. WooCommerce Slack Community: [https://woocommerce.com/community-slack/](https://woocommerce.com/community-slack/)
    2. Advanced WooCommerce group on Facebook: [https://www.facebook.com/groups/advanced.woocommerce/](https://www.facebook.com/groups/advanced.woocommerce/)
 *  Plugin Support [slash1andy](https://wordpress.org/support/users/slash1andy/)
 * (@slash1andy)
 * Automattic Happiness Engineer
 * [6 years, 8 months ago](https://wordpress.org/support/topic/echoing-product_page-from-php-breaks-functionality/#post-11954446)
 * We haven’t heard back from you in a while, so I’m going to mark this as resolved–
   if you have any further questions, you can start a new thread.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘echoing [product_page] from php breaks functionality’ is closed to new
replies.

 * ![](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/)

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [product bundle](https://wordpress.org/support/topic-tag/product-bundle/)

 * 3 replies
 * 3 participants
 * Last reply from: [slash1andy](https://wordpress.org/support/users/slash1andy/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/echoing-product_page-from-php-breaks-functionality/#post-11954446)
 * Status: resolved