Error in Woocommerce

Asked

Viewed 24 times

0

Situation:

  1. User has 2 items worth R $ 200,00 in the cart
  2. 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

*

  • 1

    Wouldn’t it be easier to open the Issue in the official project?

  • I do not know if it is a bug, or a misinterpretation and implementation of my, think better to report in the official project?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.