woocommerce ajax page load (1 post)

  1. wonky_rat
    Posted 3 years ago #

    Hi, I'm trying to do an ajax page load into a blank div on the shop archive page.

    Product thumbnails activate ajax onclick with jquery >> function.php is where I have the function for the information I want to send back into the div >> jquery puts content back into blank div.

    So far I'm able to pull in the <?php the_title(); ?> fine so I know I'm making a connection.

    But when I try to pull in <?php do_action( 'woocommerce_single_product_summary' ); ?>

    the ajax call seems to break at on price.php:
    <p itemprop="price" class="price"><?php echo $product->get_price_html(); ?></p>

    It seems that its on the echo $product part.

    Has anyone got any ideas how I can solve this?

    Thanks in advance and hope there's an answer :)


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic