Skip to main content
Post Undeleted by Kirti Nariya
Post Deleted by Kirti Nariya
deleted 46 characters in body
Source Link

In default Magento Version 2.2.7 product listing page category product Position working fine.

If you have customized product collection for list page, then you have to need sorting your collection using Position like addAttributeToSort('position', 'ASC')

Example:

$productCollection = $this->getCategory($categoryId)->getProductCollection()->addAttributeToSelect('*')->addAttributeToSort('position', 'ASC');

Let me know if any query.

Hope it help!

In default Magento Version 2.2.7 product listing page category product Position working fine.

If you have customized product collection for list page, then you have to need sorting your collection using Position like addAttributeToSort('position', 'ASC')

Example:

$productCollection = $this->getCategory($categoryId)->getProductCollection()->addAttributeToSelect('*')->addAttributeToSort('position', 'ASC');

Let me know if any query.

Hope it help!

In default Magento Version 2.2.7 product listing page category product Position working fine.

If you have customized product collection for list page, then you have to need sorting your collection using Position like addAttributeToSort('position', 'ASC')

Example:

$productCollection = $this->getCategory($categoryId)->getProductCollection()->addAttributeToSelect('*')->addAttributeToSort('position', 'ASC');
Source Link
Kirti Nariya
  • 3.1k
  • 2
  • 24
  • 53

In default Magento Version 2.2.7 product listing page category product Position working fine.

If you have customized product collection for list page, then you have to need sorting your collection using Position like addAttributeToSort('position', 'ASC')

Example:

$productCollection = $this->getCategory($categoryId)->getProductCollection()->addAttributeToSelect('*')->addAttributeToSort('position', 'ASC');

Let me know if any query.

Hope it help!