skip to Main Content

Woocommerce producuts shortcode display only two products per page

I am building WooCommerce store with storefront child theme. In my shop page (archive-product.php) I'm using following code to display products: <?php $filterArray = explode("/", "http://" . $_SERVER[HTTP_HOST] . $_SERVER[REQUEST_URI]); if(count($filterArray)>5) { echo do_shortcode('[products category="' . $filterArray[count($filterArray)-2] . '" per_page="30"…

VIEW QUESTION

sort products for specific category page woocommerce

I want to sort products for specific book category page woocommerce but i am unable to do that below is the code i have applied but not worked for me /* add_filter('woocommerce_default_catalog_orderby','custom_catalog_ordering_args_func',220, 1); function custom_catalog_ordering_args_func($sortby) { $product_category = 'book'; //…

VIEW QUESTION
Back To Top
Search