1

You can set your collection to omit the current product using addAttributeToFilter. E.g. by adding: $collection->addAttributeToFilter('entity_id', ['neq' => $productId]);


Only top voted, non community-wiki answers of a minimum length are eligible