Magento 2 - Sort by Brand and Position?
-
11-05-2021 - |
Domanda
Is it possible to sort by A the Brand alphabetically and then B by Position Programmatically.
Nessuna soluzione corretta
Altri suggerimenti
Yes, It is possible to sort by A the Brand alphabetically and then B by Position. As you can see this functionality is already implemented in Amasty's extension.
using collection you can sort and filter everthing. Here's the link to filter by attribute: https://www.mageplaza.com/devdocs/how-get-product-collection-magento-2.html
And here the sort by: $productCollection->addAttributeToSort('update_at', 'DESC')
Cheers
Yes, I am user for alphabetically shop by brand extension.please try to this extension
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a magento.stackexchange