-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Add CatalogSearch no results handle #18069
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CatalogSearch no results handle #18069
Conversation
Hi @progreg. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
@magento-engcom-team give me test instance |
Hi @okorshenko. Thank you for your request. I'm working on Magento instance for you |
Hi @okorshenko, here is your new Magento instance. |
I'm happy that PR was created to this but... it does not work as expected.
Am I doing something wrong? Basically the layout xml file is not processed at all... at least thats what I can tell. For now I will simply create a redirect to a new controller where layout handles work fine. |
Hi @progreg Thanks! |
@qsolutions-pl, thanks for response. I will check it. |
Hi @qsolutions-pl, the issue was fixed and now you can check again it by using next handles:
|
@progreg I do see layout handles being used when I implemented this pull request to my magento installation. Even tests pass when I run them. |
Hi @qsolutions-pl |
@qsolutions-pl, yeap, you are right. I will take a look again maybe i missed something. Thanks for response |
@qsolutions-pl, problem with layout was fixed. Please take a look if you still interested in such improvement. Thanks |
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.
@progreg thanks for the contribution! Can you please add phpdocs to all added constants and methods.
$this->assertEquals($redirectResultMock, $instance->execute()); | ||
} | ||
|
||
public function testNoResultsHandle() |
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.
please add docblocks/comments for all introduced constants and methods
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.
done
Hi @sivaschenko, thank you for the review. |
Hi @progreg. Thank you for your contribution. |
Description
Added default handle if result count of search results is zero. The feature was implemented for both search variations. For a simple search, the handle will be
catalogsearch_result_index_noresults
and for advanced search, it will becatalogsearch_advanced_result_noresults
.Fixed Issues (if relevant)
Contribution checklist