woocommerce ajax page load
-
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 ??
- The topic ‘woocommerce ajax page load’ is closed to new replies.