This topic has 6 replies, 2 voices, and was last updated 8 years, 1 months ago ago by Eva Kemp
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
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.
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
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.
thanks Eva,
this worked for me as well.
You are welcome.
Regards,
Eva Kemp.
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