-
Notifications
You must be signed in to change notification settings - Fork 219
Make Attribute Filter block compatible with PHP rendered Classic Template block #6204
Make Attribute Filter block compatible with PHP rendered Classic Template block #6204
Conversation
Script Dependencies ReportThe
This comment was automatically generated by the |
Size Change: +1.24 kB (0%) Total Size: 863 kB
ℹ️ View Unchanged
|
Script Dependencies ReportThe
This comment was automatically generated by the |
Failing E2E tests appear unrelated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall this is looking good, but I found a couple of issues while testing:
First, I don't seem to be able to remove the last attribute filter, is that expected?
(it's not obvious from the GIF, but I'm pressing the checkbox and nothing happens 😅 )
The second one happens when I set the Display Style to Dropdown in the editor. The block crashes after I select one filter:
Can you reproduce them?
Script Dependencies ReportThe
This comment was automatically generated by the |
@Aljullu that's definitely not expected 😅 . I have fixed the crashing component just working on removal of filter now. |
…products-block into update/filter-product-by-attribute-php-template
Script Dependencies ReportThe
This comment was automatically generated by the |
…products-block into update/filter-product-by-attribute-php-template
Script Dependencies ReportThe
This comment was automatically generated by the |
Script Dependencies ReportThe
This comment was automatically generated by the |
I updated this PR with the fix for removing the filter. I noticed other three bugs:
This task was pretty trickier, I hope that I didn't introduce new bugs :D |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm facing a strange issue when I add two Attribute Filter blocks in the page and one has Query Type: AND and the other one Query Type: OR, the page enters an infinite reloading loop. Can you reproduce as well?
Yes, thanks for catching this! I'm working on a fix! |
f5a4ff9
to
0bdf8a7
Compare
Fixed with 0bdf8a7 |
Script Dependencies ReportThe
This comment was automatically generated by the |
2 similar comments
Script Dependencies ReportThe
This comment was automatically generated by the |
Script Dependencies ReportThe
This comment was automatically generated by the |
…products-block into update/filter-product-by-attribute-php-template
Script Dependencies ReportThe
This comment was automatically generated by the |
Script Dependencies ReportThe
This comment was automatically generated by the |
Update the Filter Attribute block to work with the Classic Template block which is PHP rendered, but also still maintain compatibility with the All Products block.
Filter Products by Attribute block will only work with the PHP rendered Classic Template block if the filters are applied to the URL and the page is re-rendered. This behaviour happens with the Classic Themes such as Storefront.
Fixes #6136
Testing
Automated Tests
Manual Testing
How to test the changes in this Pull Request:
All Products
block, and theFilter by Attribute
block and ensure no regressions have been introduced here.User Facing Testing
These are steps for user testing (where "user" is someone interacting with this change that is not editing any code).
Changelog