Home Forums WoodMart support forum display more or all items in side-bar-mini-cart

display more or all items in side-bar-mini-cart

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #590434

    qtwrk555
    Participant

    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 ?

    #590476

    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

    #590496

    qtwrk555
    Participant

    you can check this

    I added 500 products into the cart, but side-bar-mini-cart only display 30 of them

    #590590

    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.

    #590694

    qtwrk555
    Participant

    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 3 months, 3 weeks ago by qtwrk555.
    • This reply was modified 3 months, 3 weeks ago by qtwrk555.
    #590703

    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.

Viewing 6 posts - 1 through 6 (of 6 total)