Woocommerce Categories Integration
-
Hi there,
I have run into a problem when integrating the ajax load more shortcode into my category page template for woocommerce. I have implemented it fine for the shop front (archive-product.php) when displaying all products, however when I choose a product category (which i’ve defined to cat-archive-product.php) from my menu, the catgeory displays all my products instead of refining the results. I tried something like this but didn’t seem to get anywhere with it:
<?php $cat = get_category( get_query_var( 'product_cat' ) ); $category = $cat->slug; echo do_shortcode('[ajax_load_more post_type="product" category="'.$category.'"]'); ?>
Any help would be much appreciated. Also, Im working locally so nothing to show you, sorry.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Woocommerce Categories Integration’ is closed to new replies.