display more or all items in side-bar-mini-cart
-
Hi,
I noticed the side bar mini cart only display partial items
let’s say if I have 100 items in cart, it only display like 30 items
how can I ajust this value ?
Hello,
Sorry to hear about the inconvenience. Kindly, please share your Site WP-ADMIN Login details in the Private Content field so that we can check this concern on your Site and help you out accordingly.
Best Regards
you can check this
I added 500 products into the cart, but side-bar-mini-cart only display 30 of them
Hello,
The number of products in the mini cart is limited to 30 items to prevent a decrease in site performance since the off-canvas cart content will be present on every page. However, if you want to increase this limit to 500 items, add the following custom code to the child theme >> Functions.php. You can also change it to your own value.
add_filter('woodmart_mini_cart_items_to_show', function () {
return 500;
});
Best Regards.
thanks, I know it will slow thing down , but still for whatever reason I need to do it
and the code snippet you provided seems not working , please verify
woocommerce/cart/mini-cart.php:$items_to_show = apply_filters( 'woodmart_mini_cart_items_to_show', 30 );
it seems also have no effect even I directly edit this file at parent theme
-
This reply was modified 11 months ago by
qtwrk555.
-
This reply was modified 11 months ago by
qtwrk555.
Hello,
I have added the code in the child theme >> functions.php file and the code is working fine. Please check the site in the incognito browser and add the products again in the cart you will see that the code is working fine.
Best Regards.