I'm a bit of a Joomla noob so hopefully this is an easy problem.
We have a Joomla 3.8.11 website using J2Store 3.3.0, and the client wants to add the SKU values to the product aliases. Specifically we want the alias generation procedure to be like
make alias based on title in the usual way; if (SKU is set): append SKU to the alias; check for duplicates in the usual way;
We want everything else to behave the same way, we only want to append a value to the alias when it's being automatically generated. Is there a simple way of doing this?
What I've tried so far:
I'm looking at the MVC Component tutorial and they subclass JModelAdmin and then override the save() function. Their situation has more alterations than mine so it's hard to see what exactly I need, and moreover J2Store is based on f0f so it uses F0FModel instead.
What I did find was a class called J2StoreModelOptions that subclasses F0FModel in
with a save($data) function that might be what I need to alter. However I added a console message to the function's body but when I click "Save" on an article's edit page it doesn't get logged, so maybe I'm not in the right place. If someone knows an easier way or if they know that I'm doing something wrong it would be very helpful. (I have submitted a support request to J2Store but we're in different timezones and I would like to resolve this asap, and I will probably still need some help once I've heard a response)