Year Make Model Professional Magento2.0 Installation

Home » Year Make Model Professional Magento2.0 Installation

Overview:

Ymm Pro magento 2.0

Year Make Model Professional  Magento 2.0 Installation guide helps to install the powerful Ymm Pro in magento 2.0 edition. The goal of this product is to implement search function where a visitor may select the Year, Make, and model of their vehicle(s) using simple drop-downs and then view a list of the vehicles or parts or accessories which will fit their vehicle.

Video Tutorial

Please watch this Video tutorial to know how to perform the installation.

Watch Video Tutorial

How to Install Year Make Model Professional Magento 2.0 Extension

1. Take a backup of the Magento files before replacing

2. Extract the files inside Magento Installation Root Magento_App_Root folder is same as your Magento 2.0 Installation directory

3. For installing module,initially we will createjson,registration.php,module.xml files.

Composer.json is used for the configuration of magento2.0 module.

registration.php allows you to create modules in the app/code folder,we create the file instead of config.xml file which is now used for module configuration variables.

module.xml is kind of the entry point of module It’s the equivalent of app/etc/modules/[Namespace]_[Module].xml in magento 1.

Add composer.json , registration.php and module.xml files in your module by following path 

/app/code/Namespace/Module/composer.json       

/app/code/Namespace/Module/registration.php

/app/code/Namespace/Modulename/etc/module.xml

4. After Transferring files we have to register our module inapp/etc/config.xml  In the array module, add the element: ‘Namespace_Modulename => 1

(OR)

Open Command line in folder root of magento and run commands magento setup:upgradeNow clear all caches and var/generation folder. Login to admin panel > Stores > Configuration > Advanced Your module should be listed here now.

Steps to be followed in admin panel to setup attributes

Step 1: Create Attribute

Stores -> Product->Add new Attributes

ymm pro magento 2.0 create attribute

ymm pro magento 2.0 create attribute

Enter Atttribute data as follows

Click Add attributes button

Example:Makes attribute for text field

YMM Pro magento 2.0 Makes attribute

YMM Pro magento 2.0 Makes attribute

Attribute code: Makes

Unique value: No
Values Required: Yes
Select all option yes for Use in quick search, Use in advanced search, Comparable on Front-end, Use In Search Results Layered Navigation, Allow HTML-tags on Front-end, Visible on Product View Page on Front-end, Used in product listing, Used for sorting in product listing

Similarly Create attributes  “v_models” and “years”

Please make a note of the 3 Attribute Codes. It should be  “makes”, “v_models”, “years”

Step 2: Assign attributes to Attribute Set

Create Attribute Set

Stores-> Attributes set

YMM Pro magento 2.0 attribute set

YMM Pro magento 2.0 attribute set

Then Click on Default. Note: You may choose a different Attribute set appropriately depending on which products you want to setup Year Make Model Search.

Click the button Add New under Groups

You can find a pop up Explore User Prompt. Please enter the group name “YearMakeModel”

A group will be created at the end you can drag and drop to your respective location.

YMM Pro magento 2.0 Assigned attributes

YMM Pro magento 2.0 Assigned attributes

Step 3: Add Products

Products->Catalog->Add product

YMM Pro Magento 2.0 assigned products

YMM Pro Magento 2.0 assigned products

You can find a new tab YearMakeModel on the left side. Fill in all the required details and assign the product to a category as needed.

Note: makes, v_models and years can take multiple values if the product has several vehicle fitments. Please enter values in comma separated format. For Example:

Make=Audi, Toyota, Ford

Model=Accord, Camry, Focus

Year=2006,2007,2008,2009,2010,2011,2012,2013,2014

Step 4: Add a new page for YmmpSearch

Content-> Pages -> Add New Page

Page Title: ymmpsearch
Self URL: ymmpsearch
Status: Enabled

Content: {{block class=”Magento\Framework\View\Element\Template” name=”catalog.product.ymmpsearch” template=”Kamtech_Ymmp::product/ymmp-search.phtml}}

After placing the tire-search.phtml file in the respective page you can view the url http://<your website>/index.php/ymmpsearch

Step 5: Refresh Magento cache.

YMM Pro Magento 2.0 cache

YMM Pro Magento 2.0 cache

How to uninstall the Year Make Model Professional Magento 2.0 extension

Please follow the instructions below to uninstall Year Make Model Professional Extension and remove from your website.
Step 1: Go to the location app/etc/config.xml
Find the line of code 1
and change it to 0
Refresh the Cache in admin panel->System->Cache Management
Step 2: Remove the file ymmp-search.phtml in the following location.
app/code/Namespace/frontend/Modulename/view/frontend/templates/product/

Questions

If you have any questions or issues, please contact technical support team via http://mage-extensions-themes.com/support/