Error in WooCommerce

0

Situation:

  • User has 2 items valued at $ 200.00 in cart
  • User when accessing the home page, when looking at the cart you can see only 1 item worth R $ 85.00
  • Code used to print the cart 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 homepage.

    *

    Theme: Storefront

    General Plugin: WooCommerce

    Wordpress Version 4.9

    *

        
    asked by anonymous 16.08.2018 / 15:59

    0 answers