Home / Forums / Basel support forum / Product bundle woocommerce- minicart widget not show the correct count
Home › Forums › Basel support forum › Product bundle woocommerce- minicart widget not show the correct count
Product bundle woocommerce- minicart widget not show the correct count
- This topic has 8 replies, 2 voices, and was last updated 7 years, 9 months ago by
Artem Temos.
-
AuthorPosts
-
March 22, 2018 at 6:30 pm #48160
eliparodiParticipantHi, im using product bundle plugin, but my mini-cart widget does not show the correct count of cart items. Bundle contents are not counted. A Bundle is counted as one item, no matter how many products it contains, the plugin support says that is because my theme.
They say this:
If your theme is counting cart items in a different way, ensure that it uses the WC()->cart->get_cart_contents_count() method to count cart items. If unsure how to verify this, share this information with your theme author(s).March 23, 2018 at 7:24 am #48224
Artem TemosKeymasterHello,
Thank you for contacting us. Currently, we are using this code
WC()->cart->get_cart_contents_countinstead of thisWC()->cart->get_cart_contents_count(). To change it, try to add the following code snippet to the functions.php file in the child themefunction woodmart_cart_count() { $count = WC()->cart->get_cart_contents_count(); ?> <span class="woodmart-cart-number"><?php echo esc_html($count); ?> <span><?php echo esc_html( _n( 'item', 'items', $count, 'woodmart' ) ); ?></span></span> <?php }We will fix this in our next theme update as well.
Regards
March 23, 2018 at 3:45 pm #48371
eliparodiParticipantHi, i put the code but doesnt work, my button cart of my menu still register only one product, and not bundle items, and the widget cart doesn’t either
March 23, 2018 at 4:00 pm #48380
Artem TemosKeymasterHi,
Then you need to contact plugins developers for help since we added the code they asked about.
March 23, 2018 at 4:14 pm #48385
eliparodiParticipantOk, thanks i will talk to them, other questions i have problem with the translate, im using loco translate and i have the archive in wpcontent/language/…but doesnt change, can you help me with that please?
March 23, 2018 at 6:02 pm #48400
Artem TemosKeymasterHere is a video tutorial that should help you translate your website texts with a Loco Translate plugin https://www.youtube.com/watch?v=tAFq1yTfWfU
March 23, 2018 at 8:51 pm #48415
eliparodiParticipantHi, yes i had already see the tutorial, but doesnt work either
March 23, 2018 at 8:54 pm #48416
eliparodiParticipantHi let me explain better, some words works but with others not, like the placeholder for the search
March 24, 2018 at 8:52 am #48445
Artem TemosKeymasterIf you just update the theme, you need to go to Loco Translate, edit your current theme translation and click on “Sync” button to actualize the translation file.
Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register