0
Situation:
- User has 2 items worth R $ 200,00 in the cart
- User when accessing the home page, when looking at the cart visualizes only 1 item in the amount of R $ 85,00
Code used to print the trolley with the respective values:
<p>
Meu Carrinho<br>
<?php echo wp_kses_post( WC()->cart->get_cart_subtotal() ); ?> <span class="count"><?php echo wp_kses_data( sprintf( _n( '%d item', '%d items', WC()->cart->get_cart_contents_count(), 'storefront' ), WC()->cart->get_cart_contents_count() ) );?></span>
</p>
NOTE: Only on the home page.
*
Theme: Storefront
General Plugin: Woocommerce
Wordpress Version 4.9
*
Wouldn’t it be easier to open the Issue in the official project?
– Woss
I do not know if it is a bug, or a misinterpretation and implementation of my, think better to report in the official project?
– Leonardo Peixe