-
Notifications
You must be signed in to change notification settings - Fork 2
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
PD-I188: Added the configuration to display bestselling products on no results page. #156
Conversation
We will need to write patch to set default values of
Let me know if any confusion. |
9882a5d
to
0d28550
Compare
Services/Setup/Version324.php
Outdated
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.
It will be Version325.php
Setup/Patch/Data/PatchV324.php
Outdated
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.
It will be PatchV325.php
etc/adminhtml/system.xml
Outdated
<source_model>Wizzy\Search\Model\Admin\Source\CategoriesListWithHandle</source_model> | ||
<comment> | ||
<![CDATA[ | ||
Select Category which Wizzy should use to display no results products. |
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.
Select Category which Wizzy should use to display products on no results found page.
<p><?= $block->escapeHtmlAttr(__('Please check the spelling or try searching for something else.')); ?></p> | ||
{{#query}} | ||
<div class="wizzy-empty-results-summary"> | ||
<p>You searched for <span class="wizzy-empty-searched-query">{{ query }}</span></p> |
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.
Display like,
<?= $block->escapeHtmlAttr(__('You searched for')); ?>
|
||
{{#query}} | ||
<p>Please check the spelling or try searching for something else.</p> |
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.
Use
$block->escapeHtmlAttr(__(
{{#lastRequestId}} | ||
<p class="wizzy-req-ref-id"><?= $block->escapeHtmlAttr(__('Ref ID:')); ?> {{ lastRequestId }}</p> | ||
<p class="wizzy-req-ref-id">Ref ID: {{ lastRequestId }}</p> |
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.
<?= $block->escapeHtmlAttr(__('Ref ID:')); ?>
<ul class="wizzy-search-results-list"> | ||
{{#suggestions}} | ||
{{& html}} | ||
{{/suggestions}} | ||
</ul><!-- ending of wizzy-search-results-list --> | ||
</div> |
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.
Why are removing </div>
…o result page