Skip to content

Commit

Permalink
Fixed cache issue in primary navigation block (#4040)
Browse files Browse the repository at this point in the history
  • Loading branch information
empiricompany authored Jun 27, 2024
1 parent 0243985 commit 95a54fa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/code/core/Mage/Catalog/Helper/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ public function initProduct($productId, $controller, $params = null)
$category = Mage::getModel('catalog/category')->load($categoryId);
$product->setCategory($category);
Mage::register('current_category', $category);
Mage::register('current_entity_key', $category->getPath());
}

// Register current data and dispatch final events
Expand Down
3 changes: 2 additions & 1 deletion skin/frontend/rwd/default/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -3554,7 +3554,8 @@ a.skip-link {
border-bottom: none;
}
.nav-primary a:hover,
.nav-primary li:hover > a {
.nav-primary li:hover,
.nav-primary li.active > a {
color: #0472ad;
}
.nav-primary .menu-active {
Expand Down
3 changes: 2 additions & 1 deletion skin/frontend/rwd/default/scss/layout/_header-nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ $nav-primary-height: 30px;
}

a:hover,
li:hover > a {
li:hover,
li.active > a {
color: $c-action;
}

Expand Down

0 comments on commit 95a54fa

Please sign in to comment.