Woocommerce cart widget (in shop sidebar) shows only up to 3 items.

This topic has 6 replies, 2 voices, and was last updated 8 years, 1 months ago ago by Eva Kemp

  • Avatar: nikos
    nikos
    Participant
    October 16, 2016 at 23:25

    Hi there,
    I checked the Legenda forum with regards the problem I am facing and I found that this problem has been posted in the past, but the solution is not clear to me.

    I am referring to the second issue reported in this post:
    https://www.8theme.com/topic/woocommerce-mini-cart-cart-widget-does-not-update-and-header-cart-only-3-items/

    “2.
    The header cart is designed to only have three items in it? Is this possible to change? Or can you tell me why we cannot display more than 3 items? It is confusing to the users to add items, see the subtotal change, but not see the proper number of items in the floating cart”

    A possible solution is later posted by the same author:
    “For number 2, I override the function
    function etheme_top_cart() {
    in the child theme, allowing it to display more than three (3) items.”

    Can you please let me know if this issue is resolved? In the eshop I am developing there are still only up to 3 items shown in the woocommerce cart widget even if there are more products added to the cart.

    If the issue is not yet resolved, can you please indicate me how to override the etheme_top_cart() function?

    Current behavior of top_cart is rather misleading.

    Thank you in advance,
    Nikos

    Please, contact administrator
    for this information.
    5 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    October 17, 2016 at 09:59

    Hello,

    You need edit the file wp-content/themes/legenda/framework/woo.php in line 944 and modify the code function etheme_cart_items ($limit = 3), change “3” to the number you want.

    Regards,
    Eva Kemp.

    Avatar: nikos
    nikos
    Participant
    October 18, 2016 at 22:13

    Hi Eva,
    thanks for your reply.
    I did the change you proposed but there are still only three selected products presented in the sidebar.
    I have set the following value
    function etheme_cart_items ($limit = 6)

    and I have created a new customer with the following credentials in case you want to try. (see private content)
    Any help on this is more than welcome.

    Nikos

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    October 19, 2016 at 08:26

    Hello,

    You need also edit the file wp-content/themes/legenda/woocommerce/cart/mini-cart.php in line 21 and change number in this code <?php etheme_cart_items(3); ?>

    Regards,
    Eva Kemp.

    Avatar: nikos
    nikos
    Participant
    October 19, 2016 at 09:07

    thanks Eva,
    this worked for me as well.

    Avatar: Eva
    Eva Kemp
    Support staff
    October 19, 2016 at 09:59

    You are welcome.

    Regards,
    Eva Kemp.

  • Viewing 6 results - 1 through 6 (of 6 total)

The issue related to '‘Woocommerce cart widget (in shop sidebar) shows only up to 3 items.’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.