BUG On EasyStore Filter Add-on Ordering - Question | JoomShaper

BUG On EasyStore Filter Add-on Ordering

Stephane Hanrez

Stephane Hanrez

SP Page Builder 6 days ago

When using the filter add-on for EasyStore in SP PageBuilder, I noticed my variants are appearing in some random order... e.g. I'm using sizes, instead of appearing like XS, S, M, L, XL, it just appeared like XL, S, L, M, XS

I digged down a bit into the code and could see that in :

components/com_easystore/src/Helper/FilterHelper.php

this method : FilterHelper::getVariants()

is basically doing :

->order($db->quoteName('options.name') . ' ' . $ordering) ->group('values.name');

so it's absolutely NOT sorting variants based on attribute_values.ordering

I currently worked-around that on my own by creating overrides for the filter and basicfilter so I'm basically reordering those before display, but it would be good if this could be corrected in core components files.

Even better would be if we could reorder variants from the admin interface, but that's more of a feature request.

Thanks

0
1 Answers
Ziaul Kabir
Ziaul Kabir
Accepted Answer
Support Agent 6 days ago #232387

Hi Stephane,

Thank you for the detailed report and for taking the time to investigate this issue so thoroughly.

We have reviewed your findings and have forwarded the matter to our development team for further investigation and consideration in a future update.

We also appreciate you sharing your workaround and additional suggestions.

Thank you again for the clear explanation and valuable feedback.

Best regards,

0