• Resolved sheldony

    (@sheldony)


    Hi. I’m not sure why this is happening. When I add an item (or 2) to my cart, the cart in nav has a different item number/total depending on which page I am on. It seems that when I click the logo to return to the home page the cart is wrong, but on the other pages the cart is right.

    I am testing on safari and chrome on a mac os 13. All WP items and plugins are all up to date.

    I am using WP Super Cache

    The site is https://sscy.org

    • This topic was modified 11 months, 1 week ago by sheldony.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter sheldony

    (@sheldony)

    Nevermind I found the answer on the forum about using

    function enqueue_wc_cart_fragments() { wp_enqueue_script( ‘wc-cart-fragments’ ); }
    add_action( ‘wp_enqueue_scripts’, ‘enqueue_wc_cart_fragments’ );

    and code snippet. Thanks anyway!

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @sheldony:

    I am very happy to hear that you managed to solve it by yourself! ??

    Let us know if you need anything else ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘cart has different number of items on different pages’ is closed to new replies.