• Resolved qlogos99

    (@qlogos99)


    Hello Petsekye,

    First of all, thank you for this amazing pluging!
    I have 2 questions I would like to ask.

    1) Can we make the category dropdown visible even before selecting make/model/year? I inserted the searchbox as a shortcode on my home page. (I tried to add your “Make category drop-down visible” modification and disabled category page filtering, but it did not change)

    2) Can we change the text –Make– , –Model–, –Year– in the dropdown case to –Any Make–, –Any Model–, –Any Year–? This to give the user the idea they can do a search with only a selected make.

    Thanks in advance

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    You can change the default drop-down option text “–Make–” , “–Model–”, “–Year–” in the file:
    wp-content/plugins/ymm-search/etc/config.php

    The “Make category drop-down visible” modification works only on the search results page.

    There is no a modification for now to display all categories in drop-down before make and model is selected on the home page.

    Stanislav

    Thread Starter qlogos99

    (@qlogos99)

    Hello Stanislav,

    Thank you for taking the time! I was able to change the default text, however I do not see the category dropdown in the results page (even with the filtering option disabled). It only shows the selected make, model and year.
    I uploaded the following files from the zip file and replaced the original from your plugin:

    1) wp-content/plugins/ymm-search/Controller/Selector.php
    2) wp-content/plugins/ymm-search/Block/Selector.php
    3) wp-content/plugins/ymm-search/view/frontend/templates/horizontal_selector.php
    4) wp-content/plugins/ymm-search/view/frontend/templates/selector.php
    5) wp-content/plugins/ymm-search/view/frontend/web/main.js

    Thank you for your answer.
    Quentin

    Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    Can you provide a link to your website?

    Maybe you need to refresh the updated js file in your web browser:
    wp-content/plugins/ymm-search/view/frontend/web/main.js

    Stanislav

    Thread Starter qlogos99

    (@qlogos99)

    It is still in maintenance mode, but I will put it online in a sec.

    Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    How can I see the results page on your website?

    I have tried to search Acura but it redirects me to the product page.

    Stanislav

    Thread Starter qlogos99

    (@qlogos99)

    Can you try the following bellow since for the Acura I only have one product.

    You probably notice that the category dropdown only shows up if you select a make, model AND year. When you then only select one main category (and no subcategory) and press on search, the result page will also show subcategories where products of the selected car is present in.
    For example, I select honda integra 1994 exhaust –> search. I see on the result page subcategories like ‘catalitic convertors’. When you click on it, you get products that are not ment for the selected honda integra from 1994.

    Plugin Author Pektsekye

    (@pektsekye)

    Yes, the modification works (category drop-down is visible) only when make, model and year are selected:
    https://midnightperformance.eu/?s=&ymm_search=1&post_type=product&_make=Honda&_model=Integra&_year=1994

    If you search for “honda integra 1994 exhaust” it redirects to the “Exhaust” category page (it is not the search result page of my plugin).

    And the “Exhaust” category on your website displays other categories.
    This plugin supports (can filter) only category pages with products for now.

    Stanislav

    Thread Starter qlogos99

    (@qlogos99)

    So you mean the modification to make the category dropdown visible is working? I still cant see it.
    How do I show the products in a result page from your plugin?

    Thread Starter qlogos99

    (@qlogos99)

    Nevermind, it works! Last question if I may. Can I change the name of the dropdown to –select Subcategory — after selecting the first category dropdown?

    Plugin Author Pektsekye

    (@pektsekye)

    Try to replace the line:

    
    select[0].options[0] = new Option(this.categoryDefOptionTitle, '');
    

    with:

    
    var defTitle = this.element.find('.ymm-category-select').length == 1 ? this.categoryDefOptionTitle : '--select Subcategory --';
    select[0].options[0] = new Option(defTitle, '');
    

    in the file:
    wp-content/plugins/ymm-search/view/frontend/web/main.js

    Stanislav

    Thread Starter qlogos99

    (@qlogos99)

    I will try that! Thank you very much for this great support!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Make category dropdown visible before selecting make/model/year’ is closed to new replies.