Modifications for the Year Make Model Search for WooCommerce WordPress plugin:
Don't forget to disable plugin update after applying a modification:
https://stackoverflow.com/questions/17897044/wordpress-how-to-disable-plugin-update
- Make Model
-
It will remove the Year drop-down and the "year" column from the ymm_restrictions.csv file.
This modification is useful for printer cartridges stores where the Year drop-down is not applicable.
screenshot
download modified files: remove_year_dropdown.zip
download YMM 1.0.10 plugin with all files modified: ymm_1.0.10_make_model.zip - Make Model Engine
-
It will replace the Year drop-down with Engine.
screenshot 1
screenshot 2
NOTE: before installing the modified version you should uninstall the original plugin in:
WordPress dashboard -> Plugins -> YMM Search plugin
Click "Deactivate" and then click "Delete" to delete all files and database tables. (screenshot)
download YMM 1.0.10 plugin with all files modified: ymm_1.0.10_make_model_engine.zip - Make Model Engine Year
-
It will add the Engine field after the Model field.
screenshot
download YMM 1.0.10 plugin with all files modified: ymm_1.0.10_make_model_engine_year.zip - Make Model Year Engine
-
It will display extra Engine drop-down after the Year drop-down.
screenshot
download YMM 1.0.10 plugin with all files modified: ymm_1.0.10_make_model_year_engine.zip - Make Model Trim Engine
-
It will display four dropdown selects Make, Model, Trim and Engine.
screenshot 1
screenshot 2
download YMM 1.0.10 plugin with all files modified: ymm_1.0.10_make_model_trim_engine.zip - Year Make Model
-
It will display Year as first drop-down.
screenshot
download modified files: year_first_dropdown.zip
download YMM 1.0.10 plugin with all files modified: ymm_1.0.10_year_make_model.zip - Year Make Model Engine
-
It will display Year as first drop-down and will display extra Engine drop-down.
screenshot
download modified files: year_make_model_engine.zip
download YMM 1.0.10 plugin with all files modified: ymm_1.0.10_year_make_model_engine.zip - Category Make Model Year
-
It will display four dropdown selects Category, Make, Model and Year.
The category means vehicle category (car, motorcycle, boat). It is not a WooCommerce product category.
screenshot 1
screenshot 2
download YMM 1.0.10 plugin with all files modified: ymm_1.0.10_category_make_model_year.zip - Category Year Make Model
-
It will display four dropdown selects Category, Year, Make and Model.
The category means vehicle category (car, motorcycle, boat). It is not a WooCommerce product category.
screenshot 1
screenshot 2
download YMM 1.0.10 plugin with all files modified: ymm_1.0.10_category_year_make_model.zip - Vehicle image from directory
-
It will display image for selected vehicle on the search results page.
screenshot
download modified files: vehicle_image_from_directory.zip - Year range in drop-down
-
It will display year ranges like 2004-2008 in the Year drop-down.
screenshot
download modified files: year_range_in_dropdown.zip - Add meta description tag with selected vehicle
-
It will add a meta description HTML tag with selected vehicle like:
<meta name="description" content="Brake Pads for Toyota Avalon 2005 | Demo website | http://domain.development/wordpress" />
on the category and search result pages.
Useful for website SEO
screenshot
download modified files: selected_vehicle_in_meta_description_tag.zip - To make drop-downs not preselected
-
It will make drop-downs not pre-selected. To not confuse customers.
Someone can think that the current product is applicable for the selected vehicle.
It will affect all pages except the search result page and category pages with filter applied.
screenshot
download modified files: make_dropdowns_not_preselected.zip - Add product is NOT compatible with your vehicle message
-
It will display a text like:
"This product is compatible with Toyota Avalon 2005"
or:
"This product is NOT compatible with Toyota Avalon 2005"
next to the product title.
To make it clear for customer if a product is compatible with the latest selected vehicle.
The latest selected vehicle is saved in the browser's cookie. And it is displayed as selected in the "Your Garage" dropdown.
screenshot 1
screenshot 2
download modified files: product_is_not_compatible_text.zip - Google XML Sitemaps plugin
-
It will make the Google XML Sitemaps 4.1.7 plugin by Arne Brachhold add YMM search result pages like:
http://domain.development/wordpress/?s=&ymm_search=1&post_type=product&_make=BMW&_model=X5
into the sitemap.xml
It is useful for website SEO
screenshot 1
screenshot 2
screenshot 3
download modified files: with_google_sitemap_generator_plugin.zip - Make category drop-down visible
-
It will make the category drop-down visible on the search results page and on category pages if category filtering is disabled.
You can disable category page filtering in:
Appearance -> Widgets -> YMM search widget -> Filter products on category page
screenshot 1
screenshot 2
download modified files: make_category_doropdown_visible.zip - Show Loading... text
-
It will display "Loading..." text in the drop-down while its options are loading.
screenshot
download modified files: show_loading_text.zip - Only on certain category pages
-
It will display YMM search box only on certain category pages or WordPress pages.
After applying the modification adjust the lines:
$showOnCategoryPages = array('my-category', 'my-category2', 'cat-1');
$showOnPages = array('cars-and-suvs', 'gear-lever-locks', 'wheel-locks');
with category slugs and WordPress page slugs that you need.
download modified files: only_on_certain_category_pages.zip - Multiple YMM on the same website
-
If you need to use multiple different YMM search boxes on the same website (example: one for cars another for trucks) you can rename YMM plugin and install the renamed copy.
This modification contains YMM Search plugin renamed to ymm-search-2, ymm-search-3 and ymm-search-44
You can search for "44" in all files and replace with some custom word or number.
Then rename the plugin's main .php file and the plugin's directory:
wp-content/plugins/ymm-search-44/ymm-search-44.php
After installing a renamed YMM copy you can use the "Only on certain category pages" modification to make the renamed plugin appear only on some special category page.
screenshot 1
screenshot 2
You can buy this modification on the page:
/ymm-multiple-ymm-on-the-same-website.html
Alternative ways to have two different YMM search boxes on the same website:
1) The "list_id in shortcode" modification:
/ymm_modifications_other
2) To use the "Category Make Model Year" version:
/ymm_modifications
and then to make the first drop-down select preselected on certain category page.
3) To use the "Attribute mapping" version:
/ymm_modifications
as the second YMM Search plugin.
- Save selected vehicle with the order info
-
It will pre-fill product text field option with the latest selected vehicle.
So that the selected vehicle will be saved with all customer order information after adding the product to the shopping cart. Then it will be displayed on checkout and in the order confirmation emails.
You can create product text field option with the Product Options for WooCommerce plugin:
screenshot 1
screenshot 2
screenshot 3
You can buy this modification on the page:
/woocommerce/modifications/ymm-selected-vehicle-in-order-info.html - Search by Attribute widget for WooCommerce
-
It will create a search box widget with attribute drop-downs.
It is useful for products with dimensions like car tires
To add attribute drop-downs edit the widget in WordPress admin panel -> Appearance -> Widgets
This simple modification displays drop-down selects not dependent on each other.
But it is possible to modify the code further to make attribute values dependent or to display only available combinations.
screenshot 1
screenshot 2
screenshot 3
screenshot 4
You can install it as a separate plugin: https://wordpress.org/plugins/attribute-dropdowns/ - Universal products after the products with make, model
-
To change sort order on the search results page.
It will show universal products (with empty make and model) after the products for the selected make, model on the results page.
It works only when the page does not have any sort order applied.
download modified files: sort_order_universal_at_the_end.zip - Attribute drop-downs after selecting make and model
-
It will display extra attribute drop-downs after make, model drop-downs in the search box.
For products with dimensions (car tires, trunk mounts) customer can select make, model and available(applicable) size before clicking the Search button.
screenshot 1
screenshot 2
screenshot 3
screenshot 4
download modified files: attribute_dropdowns_after_make_model.zip - Include product attributes in the text search
-
It will make WooCommerce also search in product attributes when performing a text search.
screenshot 1
screenshot 2
screenshot 3
download modified files: include_product_attributes_in_text_search.zip - Number plate search
-
It will display a text field "ENTER YOUR NUMBER PLATE" with a submit button above the Make, Model drop-downs in the YMM search widget.
After entering the number it will try to find vehicle make, model and year by using the dvlasearch.co.uk service.
If it can find vehicle by the number plate it will try to find products for that vehicle on your website with the YMM plugin.
To use this modification you should have an API key and the vehicle make, models on your website should be the same as on dvlasearch.co.uk
screenshot 1
download modified files: plate_number_search.zip - CSV with multiple product SKUs in a row
-
To make it possible to use multiple product SKUs separated with comma in a row when importing CSV data.
screenshot 1
download modified files: csv_import_with_multiple_product_sku_in_a_row.zip - Display vehicle fitment with shortcode
-
Display vehicle fitment (ymm restriction) with WordPress shortcode:
[ymm_restriction]
screenshot 1
screenshot 2
download modified files: display_product_restrictions_with_shortcode.zip - Product name instead of SKU in CSV
-
Use product name instead of product SKU in the CSV file.
screenshot 1
sample CSV file: ymm_restrictions.csv
download modified files and instructions: product_name_instead_of_product_sku_in_csv.zip
download YMM 1.0.9 plugin with all files modified: ymm_1.0.9_product_name_in_csv.zip - Filter sub categories
-
It will filter sub categories on the category page for selected Make, Model and Year.
screenshot 1
download modified files and instructions: filter_sub_categories.zip
download YMM 1.0.9 plugin with all files modified: YMM_1.0.9_with_subcategory_filter.zip - Automatically filter category pages
-
This modification will automatically apply filter to category pages if there is a vehicle selected.
After applying this modification you can also apply the "Filter sub categories" modification to make it filter the category pages that display just sub categories.
download modified files and instructions: automatically_filter_category_pages.zip
download YMM 1.0.9 plugin with all files modified: ymm_1.0.9_with_automatically_filter_category_pages.zip - Attribute mapping
-
For products like car batteries (tires, rims, wiper blades, trunk mounts) that can be used for many car models it is possible to use the attribute mapping feature.
So you can import a .csv file with cars make, model and their applicable battery type.
Then create battery type product attributes and select it for your products (batteries).
So that when customer select a car the plugin will find applicable battery type then will search for products with such battery type.
screenshot 1
screenshot 2
screenshot 3
screenshot 4
screenshot 5
Sample CSV file: ymma_attribute_mapping.csv
README:
README.html
Download the YMMA Search 1.0.1 plugin with attribute mapping: ymma-search.zip -
Check also Other Modifications -> -> ->
Paid Modifications:
- YMM in WooCommerce CSV product export
-
Export and import ymm restrictions with WooCommerce CSV product import-export feature.
Multiple vehicles will be exported-imported in a single ymm field like:
Daihatsu,Altis,2000,2008|Toyota,Camry,1993,2000
screenshot of export 1
screenshot of export 2
screenshot of export 3
screenshot of import 1
screenshot of import 2
screenshot of import 3
sample CSV file: sample-wc-product-export.csv
You can buy and install this modification as a separate plugin on the page:
/woocommerce/ymm-in-woocommerce-csv-import.html