Skip to content

Commit

Permalink
Product Repeat Isuue after filter on category listing page.Issue : ma…
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayank committed Oct 13, 2017
1 parent 1e105b3 commit 4aadf36
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,10 @@ public function setCollection($collection)
}
if ($this->getCurrentOrder()) {
if (($this->getCurrentOrder()) == 'position') {
$this->_collection->addAttributeToSort($this->getCurrentOrder(), $this->getCurrentDirection())->addAttributeToSort('entity_id', $this->getCurrentDirection());
$this->_collection->addAttributeToSort(
$this->getCurrentOrder(),
$this->getCurrentDirection()
)->addAttributeToSort('entity_id', $this->getCurrentDirection());
} else {
$this->_collection->setOrder($this->getCurrentOrder(), $this->getCurrentDirection());
}
Expand Down

0 comments on commit 4aadf36

Please sign in to comment.