Woocommerce cart doesn't display in Smart Sidebar

Posted in: Newspaper
Post count: 10

Hello,

Woocoommerce cart widget doesn’t display in Smart Sidebar.

Did anyone encounter the same problem?

The cart widget displays perfectly when TagDiv composer is disabled.

Post count: 10

There is a CSS trick to HIDE this stupid problem, I hope someone will find it useful. Just paste the code in the theme or child theme CSS file.


form.woocommerce-cart-form ~ form.woocommerce-cart-form {
	display: none !important;
}

div.woocommerce-message ~ div.woocommerce-message {
	display: none !important;
}

div.cart_totals ~ div.cart_totals {
	display: none !important;
}
  • This reply was modified 7 years by afazja.
Post count: 10

Sorry, posted this in a wrong thread

Post count: 20688

Hi,

I tried inserting a cart widget in a product sidebar, the widget appears and works
https://www.screencast.com/t/JtwmKeb5QEN
Exactly how should I test to see the problem?

Thanks

Post count: 10

Simion, I have no idea why it works on your setup and not on mine. After deactivating TD Composer, I get the cart to display in the sidebar:

https://www.dropbox.com/s/3ww4xy1txd794ov/chrome_2018-08-13_21-48-17.png?dl=0

Post count: 10

Simion, I figured out what was wrong – I had enabled Cart as Mega Menu in the top menu bar (above the main menu) – this was causing the cart to crash.

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.