Tire Search – Magento 2.0 Installation

Home » Tire Search – Magento 2.0 Installation

Overview:

Tire Search Magento 2.0 Installation guide helps to install the powerful tire search in magento 2.0 edition. This extension helps the customers to search the tires they are interested for their vehicles in very efficient manner. Input parameters are to select the width, height, diameter, Manufacturer, Type and Season of their desired products using simple drop-downs and then view a list of products of their interest to order.

Video Tutorial

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

Watch Video Tutorial

How to Install Tire Search 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 create composer.json,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 in app/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:upgrade

Now 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

attribute create

attribute create

 

Enter Atttribute data as follows

Click Add attributes button

Example:width attribute for text field

width-attribute

width-attribute

Attribute code: width
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 “manufacture”

Example:Ratio attribute for dropdown

ratio-attribute

ratio-attribute

Attribute code: v_ratio

Catalog Input Type for Store Owner:dropdown
Unique value: No
Values Required: No
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

Use In Results Layered Navigation as filterable with results

Similarly Create attributes Diameter.

passanger attribute

passanger attribute

Please make a note of the Attribute Code. It should be (width,v_ratio,v_diameter,manufacture)

Attribute code: passenger

Unique value: No
Values Required: Yes
Catalog Input Type for Store Owner: Yes/No

Select all option Yes for Use in quick search, Use in advanced search, Comparable on Front-end, Use In Search Results Layered Navigation, Visible on Product View Page on Front-end, Used in product listing, Used for sorting in product listing Similarly Create attributes for “truck”, “minivan”, “summer”, “winter”, “allseason”.

Please make a note of the Attribute Code. It should be (passenger, truck, minivan, summer, winter, allseason)

Step 2: 

Create Attribute Set

Stores-> Attributes set

attribute set

attribute set

Click on Default

Click the button Add New under Groups
You can find a pop up Explore User Prompt. Please enter the group name “TireSearch”

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

tire search atrtibute

tire search atrtibute

assigned attributes

assigned attributes

Step 3: Add Products

Products->Catalog->Add product

product

product

You can find a new tab Tire Search added. Fill in all the required details and assign the product to a category.(Follow the require steps to add products in order to make the product display in client panel).

Step 4: Add a new page for TireSearch

Content-> Pages -> Add New Page

Page Title: TireSearch
Self URL: tiresearch
Status: Enabled

Content: {{block class=”Magento\Framework\View\Element\Template” name=”catalog.product.tiresearch” template=”Kamtech_Ts::product/tire-search.phtml}}

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

Step 5: Refresh Magento cache.
Admin Panel – System – Cache Management – Select all Check boxes – Flush Magento Cache

cache management

cache management

How to uninstall the Tire Search extension

Please follow the instructions below to uninstall Tire Search 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 tire-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/