Woocommerce cart action triggers additional display

Hi guys - have a problem with a woocommerce cart for our site https://classicbouquets.com.au

it displays fine on first page view, though when an action is triggered such as add coupon or calculate shipping, the cart function is duplicated on the page - which is confusing as hell for users!

It’s running woo 3.4.3 on the prod site hosted on cloudways - changing/clearing cache settings doesn’t change anything.

Running woo 3.4.2 on the staging site - problem still occurs - change to twentyseventeen and the issue goes away.
stagin url is https://classicbouquets.ranges.digital

Deactivate all the woo plugins and the issue remains.

Seems like the theme is calling the woocommerce_cart function twice?

Can you help me out?

Hi,

I tested this in my test sites but could not replicate the issue.

Can you try re-installing and activating your main PRO theme in your staging site

Then try re-installing your woocommerce plugin as well.

https://github.com/woocommerce/woocommerce/archive/3.4.2.zip

Thanks

Thanks Paul - yep so have done that.

Re-uploaded Pro theme 2.1.6, Pro-Child 1.0.0 and Woocommerce 3.4.2.

Same issue!

Doesn’t occur on twentyseventeen.

All plugins deactivated.

Hey @rangestech,

I see the issue in your site. It’s weird. I even switched to the parent Pro theme and still the issue persists with all plugins deactivated except WooCommerce. Would you mind giving us FTP access so we could check your setup maybe we could pick up some clues?

I tested my dummy site and this does not happen so not sure if this is a bug yet.

Thanks.

Yes I’ve also spun up a vanilla installation with Pro/Woo only and can’t replicate it either - definitely weird.

Credentials sent by secure note.

I might also clone the instance and see what happens when I change the stack - maybe there’s some weird woo/cart code that calls functions differently for different stacks?

Hoping you guys can think of something to fix it - we’re in production with the site (couldn’t wait) but feel free to break/fix the dev site and let me know how to fix my prod instance.

Cheers,

Brendan

Hey Brendan,

Thanks for the clue. The one causing the issue is the [woocommerce_cart] shortcode you’ve placed in the header. I removed it and the issue was fixed.

Hope that helps.

Okay thanks - saved me a bunch of additional troubleshooting!
Client and Dev very happy.
Cheers

On behalf of my colleague, you’re welcome. Cheers! :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.