Skip to Main Content »

Search Site

You're currently on:


Other modifications for the Year Make Model Search for WooCommerce WordPress plugin:


These modifications may not contain screenshots and a detailed changes.txt file but you can still find them useful.

<- <- <- Go Back to the main modifications page

Most of these modifications are from an older version of this plugin.
So do not replace entire files just edit the modified lines.

Don't forget to disable plugin update after applying a modification:
https://stackoverflow.com/questions/17897044/wordpress-how-to-disable-plugin-update

Alphabetical sort order on the results page
It will set default sort order "by name" on the results page with an URL parameter. So that the found products are listed in alphabetical order.
download modified files and instructions: default_sort_order_on_results_page.zip
Disable redirect to the product page
To make it not redirect to the product page when just one product is found.
Add this line:
add_filter('woocommerce_redirect_single_search_result', '__return_false');

at the end of the file:
wp-content/plugins/ymm-search/ymm-search.php
Don't display category drop-downs for one found product
It will not display the category drop-downs after the make, model and year drop-downs when just one product is found.
download modified files and instructions: dont_display_category_dropdowns_if_one_product_found.zip
Import updated .csv file with WordPress cron
To make it automatically import an updated .csv file with WordPress cron.
An example of how to do it: import_updated_csv_with_wordpress_cron.txt
Limit categories in the drop-down
This modification will limit categories in the first category drop-down that is displayed after selecting make, model and year.
You will have to specify allowed category IDs in the modified file.
screenshot
download modified files and instructions: limit_categories_in_drop_down.zip
Add notes to applicable vehicles
To make it display Notes column in the "Applicable for" tab of the front-end product view page.
You will have to specify note in an extra "note" column in the csv file and on the edit product page like this:
Daihatsu, Altis, 1990, 2005, note here
screenshot
download modified files and instructions: make_model_year_note.zip
download YMM 1.0.9 plugin with all files modified: ymm_1.0.9_make_model_year_note.zip
No automatic search
By default it automatically start searching when user selects the last drop-down.
With this modification it will not search until the Search button is clicked.
download modified files and instructions: no_automatic_search.zip
Redirect to category page as search results page
This modification will redirect to a category page instead of the YMM search results page.
You will have to specify category slug in the modified file.
download modified files and instructions: redirect_to_category_page_as_search_results_page.zip
Search button inline with drop-downs and mobile view
It will display the search button inline with the drop-downs when it is displayed with horizontal widget.
Also the mobile view changed to display the drop-downs and the the search button correctly.
screenshot 1
screenshot 2
download modified files and instructions: search_button_inline_horizontal_and_mobile_view.zip
Selected make and model as breadcrumbs
It will display selected make, model and year as breadcrumbs on the category page.
screenshot
download modified files and instructions: selected_make_model_in_breadcrumbs.zip
Category drop-downs with sorted options
It will sort options in the category drop-downs that appears after selecting make, model and year
download modified files and instructions: sort_category_dropdown_options.zip
Start from current year
To make it not display future years like 2030 in the Year drop-down.
download modified files and instructions: start_from_current_year.zip
Without WooCommerce
It will make it work on WordPress without WooCommerce installed.
It will search for WordPress posts instead of WooCommerce products.
screenshot 1
screenshot 2
download modified files and instructions: without_woocommerce.zip
Wrap drop-downs with div
To make it wrap drop-downs with <div class=“level”>
And to add “disabled" class to it when the level is disabled.
It will only affect vertical YMM search box. The horizontal search box already has selects wrapped with <div class=“level”>
screenshot
download modified files and instructions: wrap_selects_with_div.zip
Years in ascending order
It will display years in the Year drop-down in ascending order Ex.: 2000, 2001, 2002
instructions: year_ascending.txt
WooCommerce categories as drop-down selects
It will display the WooCommerce categories as drop-down selects instead of the make, model and year drop-downs.
The first drop-down displays root categories.
Then after selecting the root category it will display a second drop-down with sub categories and so on.
It will redirect to the selected category page if there are no more sub categories or if the user clicks the Search button.
screenshot 1
screenshot 2
screenshot 3
download modified files and instructions: just_category_dropdowns.zip
download YMM 1.0.10 plugin with all files modified: ymm_1.0.10_with_just_categories_dropdowns.zip
Yoast SEO XML Sitemap
It will make the Yoast SEO plugin add YMM search result pages like:
http://domain.com/?s=&ymm_search=1&post_type=product&_make=BMW&_model=X5
to:
http://domain.com/ymm-sitemap.xml
And will add the ymm sitemap to the sitemap index page:
http://domain.com/sitemap_index.xml
screenshot
download modified files and instructions: yoastseo_xml_sitemap.zip
download YMM 1.0.10 plugin with all files modified: ymm_1.0.10_with_yoastseo_xml_sitemap.zip
YMM in products text search
It will also search in the ymm database table while searching for products with WooCommerce products text search on front-end.
It will search only for make and model.
screenshot
download modified files and instructions: include_ymm_in_products_text_search.zip
download YMM 1.0.10 plugin with all files modified: ymm_1.0.10_with_ymm_in_products_text_search.zip
Sort products by category
This modification will change sort order on the search results page.
First will be displayed products of the specified categories.
If multiple categories are specified then first will be displayed products of the first specified category then will be displayed products of the second specified category and so on.
You will have to specify category ids in a .php file like this:
protected $_sortByCategoryId = array(18,157);
screenshot
download modified files and instructions: sort_results_by_category.zip
download YMM 1.0.10 plugin with all files modified: ymm_1.0.10_sort_results_by_category.zip
list_id in shortcode
With this modification you can use "list_id" parameter in your shortcode like this:
[ymm_selector list_id="Vehicles 2" template="horizontal_selector.php"]
to display only selected vehicle makes and models in the drop-down selects.
screenshot 1
screenshot 2
screenshot 3
screenshot 4
download modified files and instructions: list_id_in_shortcode.zip
download YMM 1.0.10 plugin with all files modified: ymm_1.0.10_with_list_id_in_shortcode.zip
Export all products that have no restriction
This modification will add a button to export all products that have no ymm restriction.
It will help you find products that have no ymm data.
The exported .csv file has ymm format so you can fill it and import back as ymm.csv
screenshot
download modified files and instructions: export_products_without_ymm.zip
download YMM 1.0.10 plugin with all files modified: ymm_1.0.10_with_export_products_without_ymm.zip
Product ID in CSV import
By default YMM CSV import accepts product SKU or product ID if the product does not have SKU.
This modification will make it accept rows with product ID even if the product has SKU.
screenshot
download modified files and instructions: product_id_in_csv_import.zip
download YMM 1.0.10 plugin with all files modified: ymm_1.0.10_with_product_id_in_csv_import.zip
Find duplicates
This modification will add extra "Find duplicates" section on the "YMM search" configuration page:
WordPress dashboard -> YMM search
It will search for duplicates like “Lexus ES-300” and “Lexus ES300”.
So the store administrator can correct them.
screenshot 1
screenshot 2
download modified files and instructions: find_duplicates.zip
download YMM 1.0.10 plugin with all files modified: ymm_1.0.10_with_find_duplicates.zip
WPML find translated products
This modification will include the translated versions of the products into the search results.
For WordPress Multilingual plugin - wpml.org
download modified files and instructions: wpml_find_translated_products.zip
Reset button
This modification will display a button to reset the selected dropdown selects.
NOTE: It only clears the drop-downs. It does not clear the saved values in the browser cookies.
If you need to clear the browser cookies use the "Clear filter" link.
The "Clear filter" link appears when "Filter category page" is enabled in the YMM widget settings.
Or to use another modification "To make drop-downs not preselected" :
http://hottons.com/ymm_modifications

screenshot
download modified files and instructions: reset_button.zip