envymike
envymike

Reputation: 165

woocommerce add to cart ajax issue

Woocommerce is probably working properly but I would like my add to cart on every page to be like the detail/single item page ajax actions.

This is what I want: add to cart -> top of page says successfully added to cart and update total on top. This is how the detail/single item page cart buttons work.

Instead of : Currently they add to cart and a view cart button shows successfully on the side instead and not refreshing the total on top.

How can I accomplish this.

Thank You.

Upvotes: 0

Views: 539

Answers (1)

Christopher Almond
Christopher Almond

Reputation: 80

If the cart is being updated after you refresh the page, then look at running a refresh after the form submits:

    onsubmit="setTimeout(function () { window.location.reload(); }, 10)"

Upvotes: 0

Related Questions