Skip to content
Snippets Groups Projects
Commit 9b11360c authored by Soukéina Bojabza's avatar Soukéina Bojabza
Browse files

[FIX] website_sale: fix cart popover on hover for all header templates


Before this commit, when hovering the shopping cart in the "Boxed" and
"Centered Logo" header templates, the cart popover was not appearing.

This happened because the `websiteSaleCartLink` public widget was never
started with these templates and so, hovering the cart had no effect.
This is due to this widget selector which targeted a cart link located
inside an element with id `#top_menu`, which is not the case in these
templates where the cart link is located outside of it.

This commit fixes this widget selector, in order for the cart link to be
reachable in all header templates.

opw-3267114

closes odoo/odoo#119277

X-original-commit: ecefa679
Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
parent cb1388ed
Branches
Tags
No related merge requests found
......@@ -7,7 +7,7 @@ var _t = core._t;
var timeout;
publicWidget.registry.websiteSaleCartLink = publicWidget.Widget.extend({
selector: '#top_menu a[href$="/shop/cart"]',
selector: '#top a[href$="/shop/cart"]',
events: {
'mouseenter': '_onMouseEnter',
'mouseleave': '_onMouseLeave',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment