also take the search button. 🙂
Hello,
Try to apply the “To make drop-downs not preselected” modification:
http://hottons.com/ymm_modifications
>also take the search button
replace the line:
<button type="button" title="<?php echo $this->getFilterCategoryPage() && Pektsekye_YMM()->isProductCategory() ? __('Filter', 'ymm-search') : __('Search', 'ymm-search') ?>" class="button ymm-submit-any-selection" <?php echo $this->isResultsPage() && $this->getWordSearchEnabled() ? 'style="display:none;"' : ''; ?>><?php echo $this->getFilterCategoryPage() && Pektsekye_YMM()->isProductCategory() ? __('Filter', 'ymm-search') : __('Search', 'ymm-search') ?></button>
with:
<div style="display:none;"><button type="button" title="<?php echo $this->getFilterCategoryPage() && Pektsekye_YMM()->isProductCategory() ? __('Filter', 'ymm-search') : __('Search', 'ymm-search') ?>" class="button ymm-submit-any-selection" <?php echo $this->isResultsPage() && $this->getWordSearchEnabled() ? 'style="display:none;"' : ''; ?>><?php echo $this->getFilterCategoryPage() && Pektsekye_YMM()->isProductCategory() ? __('Filter', 'ymm-search') : __('Search', 'ymm-search') ?></button></div>
in the file:
wp-content/plugins/ymm-search/view/frontend/templates/horizontal_selector.php
Stanislav
It worked perfectly, thank you very much !!!
Pektsekye (@pektsekye)
Greetings,
Wanted to say thank you for this plugin, it is a very useful one for what I am trying to accomplish.
However I have come into an issue when trying to apply the “To make drop-downs not preselected” modification. When replacing the original file with this one where the selection is commented out. (lines 213, 318)
When reloading the site, I get the following error. Any suggestions as to why?
Warning: include(C:\laragon\www\TechEyeAirbagSite\wp-content\plugins\ymm-search/view/frontend/templates/horizontal_selector.phtml): failed to open stream: No such file or directory in C:\laragon\www\TechEyeAirbagSite\wp-content\plugins\ymm-search\Block\Selector.php on line 400
<code>Warning: include(): Failed opening 'C:\laragon\www\TechEyeAirbagSite\wp-content\plugins\ymm-search/view/frontend/templates/horizontal_selector.phtml' for inclusion (include_path='.;C:/laragon/etc/php/pear') in C:\laragon\www\TechEyeAirbagSite\wp-content\plugins\ymm-search\Block\Selector.php on line 400</code>
When looking at that line it shows the below code (of course you know this I am sure haha) but figured place it for reference.
include(Pektsekye_YMM()->getPluginPath() . 'view/frontend/templates/' . $templateFile);
Thank you for any help you can provide.
Travis
****EDITED****
I found the issue, for some reason it had phtml as the file path lookup. I changed that to PHP and worked fine.
Thanks