• Resolved twigglypuff

    (@twigglypuff)


    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 to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter twigglypuff

    (@twigglypuff)

    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.

    (@riaanknoetze)

    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/
    2. Advanced WooCommerce group on Facebook: https://www.facebook.com/groups/advanced.woocommerce/
    Plugin Support slash1andy

    (@slash1andy)

    Automattic Happiness Engineer

    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.