• Hello, first thanks for this wonderful pluguin.

    Every time I do a search for the plug and go back to the homepage it doesn’t go back to “Make / Model / Year”. It is saved in the last search. I would like you to clear the fields every time the page refreshes. Would you help me? Thanks!

    Page: https://veiculos.rededoautomovel.com

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter andersu

    (@andersu)

    also take the search button. ??

    Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    Try to apply the “To make drop-downs not preselected” modification:
    https://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

    Thread Starter andersu

    (@andersu)

    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

    • This reply was modified 4 years, 8 months ago by techeyewebsolutions. Reason: Found the issue
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Plugin do not reset’ is closed to new replies.