Very Slow Loading Tables in WooCommerce
http://cdncoin.wpengine.com/product-category/gold/
Greetings...
I am using the following php function on my site to pull in Volume Pricing Discounts on my WooCommerce Shop Pages...
The issue that I am having is that these volume discount tables are taking a very long time to load.
I am not sure if there is a memory leak issue. If someone could take a quick look and provide advice as to how I can make this load faster this would be really great!
Regards
Rob
//Add Volume Discounts on Shop Pages
function productvolumediscounts()
{
global $product;
echo '<div class="volumediscounts" id="'. $product->id .'"></div><script> jQuery( "#'. $product->id .'" ).load("'. $product->get_Permalink() .' .nfs_table");</script>';
}
add_action('woocommerce_after_shop_loop_item', 'productvolumediscounts');