- Priority: 0
- Status: Waiting on customer
- Theme: Alysum
-
Assigned To:
Fred
- Private: No
- Open Date: 03.02.25, 17:53
- Opened by: Rémy Meglioli
Ticket #25942 - Filters aspect in responsive mode
Hello,
How can I ensure that the filters are displayed in the form of the button in the responsive attachment?
As in your example: https://alysum.promokit.eu/jewelry/en/mobile/category/106-stackable
Is it with AMP? Because I can’t do it with Creative Elements in responsive.
Comments
Hi, Rémy Meglioli.
Yes, the link you gave me is AMP
But responsive version is also looks fine → https://mega.nz/file/MIABQAiL#7TV2858etgt9JKDuSFyIlKHDIoVdprPbByvHbOqhTsA
Hi, Thanks.
I'd like the filter button to take up the whole width and the filters to be hidden by default until the button is pressed (it's currently the other way round). And only on mobile. Like the attached photo.
Attachments:
You can try to adjust it in the widget settings https://mega.nz/file/1MBCwQhI#gyIzH8nkZDMjwlL8ogpaPWl__7c3maLvhJgUTfzxrFo
No, that's not what I want to do. The desktop view is fine for me, and I don't want to change it. However, in mobile view, there's a button to show and hide the filters. By default, the filters are visible, but I want them to be hidden until the button is pressed. Like in my picture attached. Please check this page on a mobile device to see what I mean: https://www.mercury-parts-france.fr/37-huiles
Attachments:
Yes, I see. There is no such option there. It requires code customization.
Is it something you can do? If yes, what would it cost?
Maybe later.
As you can see on the green banner on the top, we are on vacation until March 10
Hi, I’m following up to see if you have a solution for making the filters hidden by default in mobile view so that they only expand when the user clicks the "Filter" button.
Hi Rémy.
Sorry for waiting
I just checked your mobile (AMP) version ask as I can see the filter's section is closed by default, like you need → https://mega.nz/file/oIYx2CKZ#aqUgi1lCs2y0ZuzIKktL6UzY2eVSiECjUIcISrf4FgY
Hi,
We don’t use AMP but rather Creative Elements’ responsive mode.
To better illustrate our issue, I recorded a video that you can view here : https://www.dropbox.com/scl/fi/mewc3gfkddbibiuzu4i5z/ibs_mobile_filter_issue.mov?rlkey=95stcdkibaoh6b728ubndeik0&dl=0
Regards.
Yes, I see the issue now. Your English is absolutely clear.
I don't see the Filter button at the moment, did you hide it?
No, I don't hide it.
Just check this page in mobile mode (make sure to refresh the page if you don’t see the button in the mobile browser emulator the first time): https://www.mercury-parts-france.fr/37-huiles
Strange, but I don't see it there https://mega.nz/file/wcJ00brI#Lite2ry4ALABhxu2Z9mnclxX_mQVAj23NOD-eOhET7E
You need to refresh (F5) the page. See this new short video I just recorded : https://www.dropbox.com/scl/fi/ni8nq4i3ji40mts4148p6/ibs_mobile_filter_issue_2.mov?rlkey=kxylb06zub0pv29s9swsytzir&dl=0
(Note: on a smartphone, the button appears immediately without the need for refresh.)
Yes, I see. Strange issue. Trying to understand what's wrong
Hello, just following up to see if you've made any progress or noticed anything new regarding the issue?
Not yet, sorry
My support expires at the end of the month. Do you think you'll have a solution by then?
I can extend it while the issue will not be fixed. Want to return to this issue this week.
Please open the file
/themes/alysum/modules/ps_facetedsearch/ps_facetedsearch.tpl
find and remove condition "{if Context::getContext()→isMobile()}" around the button
https://mega.nz/file/xAA3lIhR#lIxipxipuZIZBwkACOeGf4D09jIZ8Qo4AUIiapnCxQ8
That doesn't solve the problem : it just adds the button in desktop mode.
The problem is that, in mobile mode, we have to press this button twice to make the filters list disappear.
In mobile mode, the filters list should be hidden by default and only appear if the button is clicked once (like in the image herewith).
This is what I explained in my video: https://www.dropbox.com/scl/fi/ni8nq4i3ji40mts4148p6/ibs_mobile_filter_issue_2.mov?rlkey=kxylb06zub0pv29s9swsytzir&dl=0
Attachments:
I'm trying to change the code in ps_facetedsearch.tpl to the one the console gives me when the filters are hidden so that it's the default display when the page is opened, but it doesn't work (see image herewith). Any idea why ?
Attachments:
ChatGPT helped me find the solution, and I'm sharing it with you here:
Thank you for pointing me in the right direction.
Thank you for sharing the solution, we will test it out