override the sort() method in the Lovata\Properties Shopaholic\Classes\Collection\PropertyValueCollection class #428
Replies: 2 comments 1 reply
-
Hello, You can add new custom method in PropertyValueCollection, for example customSorting(). You can find example here |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thank You! I added it by Event::subscribe method in my Plugin |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! Tell me if it is possible to override the sort() method in the Lovata\Properties Shopaholic\Classes\Collection\PropertyValueCollection class? This is necessary in order to change the sorting order of the properties. Now it is by value, but I need by sort_order (my custom field).
At the same time, I cannot get into the lovata/propertiesshopaholic plugin code. So far I have come to a cumbersome solution where I need to inherit a lot of classes, make my own component in my custom plugin and output a new custom component with its own methods.
Beta Was this translation helpful? Give feedback.
All reactions