WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
woocommerce ajax page load (1 post)

  1. wonky_rat
    Member
    Posted 1 year 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 :)

    http://wordpress.org/extend/plugins/woocommerce/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic