Hello kitestop,
The word position is coming from model class. Please refer the file vendor/magento/module-catalog/Model/Config.php. Here you can get a function getAttributeUsedForSortByArray()
/** * Retrieve Attributes Used for Sort by as array * key = code, value = name * * @return array */ public function getAttributeUsedForSortByArray() { $options = ['position' => __('Position')]; foreach ($this->getAttributesUsedForSortBy() as $attribute) { /* @var $attribute \Magento\Eav\Model\Entity\Attribute\AbstractAttribute */ $options[$attribute->getAttributeCode()] = $attribute->getStoreLabel(); } return $options; }
You can override the above function in your module and change the term Position as per your requirement. Then flush the cache and check on frontend.
Hope it will help you.
I'm not sure if by 2.4.6 this has become easier, or if this has always been this easy...
Now, you can simply open (or create):
<mage_root>/app/design/frontend/<Theme_Vendor>/<Theme_Child>/i18n/en_GB.csv
(or whatever language you're using)
and add:
Position,Whatever
So in the case of this question, it would be:
Position,Recommended